Skip to content

Commit 5a101fb

Browse files
author
Matt Delves
committed
[profdata] update spec usage to expect instead of should
1 parent 0bb51de commit 5a101fb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

spec/slather/coverage_service/cobertura_xml_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
source_node.content = ''
3434
end
3535

36-
EquivalentXml.equivalent?(current_xml_doc, fixture_xml_doc).should be_truthy
36+
expect(EquivalentXml.equivalent?(current_xml_doc, fixture_xml_doc)).to be_truthy
3737
end
3838

3939
it "should create an XML report in the given output directory" do

spec/slather/coverage_service/coveralls_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
fixtures_project.post
123123
expect(File.exist?("coveralls_json_file")).to be_falsy
124124
fixtures_project.stub(:travis_job_id).and_return(nil)
125-
expect { fixtures_project.post }.to raise_error
125+
expect { fixtures_project.post }.to raise_error(StandardError)
126126
expect(File.exist?("coveralls_json_file")).to be_falsy
127127
end
128128
end

spec/slather/coverage_service/hardcover_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
fixtures_project.post
8181
expect(File.exist?("hardcover_json_file")).to be_falsy
8282
fixtures_project.stub(:jenkins_job_id).and_return(nil)
83-
expect { fixtures_project.post }.to raise_error
83+
expect { fixtures_project.post }.to raise_error(StandardError)
8484
expect(File.exist?("hardcover_json_file")).to be_falsy
8585
end
8686
end

0 commit comments

Comments
 (0)