spec/simplecov-lcov_spec.rb in simplecov-lcov-0.4.0 vs spec/simplecov-lcov_spec.rb in simplecov-lcov-0.5.0
- old
+ new
@@ -36,22 +36,20 @@
let(:output_path) {
File.join(SimpleCov::Formatter::LcovFormatter.output_directory, 'spec-fixtures-hoge.rb.lcov')
}
let(:fixture) {
File.read("#{File.dirname(__FILE__)}/fixtures/lcov/spec-fixtures-hoge.rb.lcov")
- .gsub('/path/to/repository/spec', File.dirname(__FILE__))
}
it { expect(File.read(output_path)).to eq(fixture) }
end
describe 'spec-fixtures-app-models-user.rb.lcov' do
let(:output_path) {
File.join(SimpleCov::Formatter::LcovFormatter.output_directory, 'spec-fixtures-app-models-user.rb.lcov')
}
let(:fixture) {
File.read("#{File.dirname(__FILE__)}/fixtures/lcov/spec-fixtures-app-models-user.rb.lcov")
- .gsub('/path/to/repository/spec', File.dirname(__FILE__))
}
it { expect(File.read(output_path)).to eq(fixture) }
end
describe STDOUT do
@@ -75,14 +73,12 @@
let(:output_path) {
SimpleCov::Formatter::LcovFormatter.single_report_path
}
let(:fixture_of_hoge) {
File.read("#{File.dirname(__FILE__)}/fixtures/lcov/spec-fixtures-hoge.rb.lcov")
- .gsub('/path/to/repository/spec', File.dirname(__FILE__))
}
let(:fixture_of_user) {
File.read("#{File.dirname(__FILE__)}/fixtures/lcov/spec-fixtures-app-models-user.rb.lcov")
- .gsub('/path/to/repository/spec', File.dirname(__FILE__))
}
it { expect(File.read(output_path)).to match(fixture_of_hoge) }
it { expect(File.read(output_path)).to match(fixture_of_user) }
end