|
|
|
@ -1,6 +1,5 @@ |
|
|
|
require 'simplecov' |
|
|
|
require 'simplecov' |
|
|
|
require 'coveralls' |
|
|
|
require 'coveralls' |
|
|
|
require 'squib' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ |
|
|
|
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ |
|
|
|
SimpleCov::Formatter::HTMLFormatter, |
|
|
|
SimpleCov::Formatter::HTMLFormatter, |
|
|
|
@ -8,12 +7,15 @@ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ |
|
|
|
] |
|
|
|
] |
|
|
|
SimpleCov.start |
|
|
|
SimpleCov.start |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
require 'squib' |
|
|
|
|
|
|
|
|
|
|
|
RSpec.configure do |config| |
|
|
|
RSpec.configure do |config| |
|
|
|
config.mock_with :rspec do |mocks| |
|
|
|
config.mock_with :rspec do |mocks| |
|
|
|
mocks.verify_partial_doubles = true |
|
|
|
mocks.verify_partial_doubles = true |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_file(str) |
|
|
|
def test_file(str) |
|
|
|
"#{File.expand_path(File.dirname(__FILE__))}/data/#{str}" |
|
|
|
"#{File.expand_path(File.dirname(__FILE__))}/data/#{str}" |
|
|
|
end |
|
|
|
end |
|
|
|
|