Skip to content

Commit

Permalink
[profdata] update spec usage to expect instead of should
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Delves committed Sep 23, 2015
1 parent 0bb51de commit 5a101fb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spec/slather/coverage_service/cobertura_xml_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
source_node.content = ''
end

EquivalentXml.equivalent?(current_xml_doc, fixture_xml_doc).should be_truthy
expect(EquivalentXml.equivalent?(current_xml_doc, fixture_xml_doc)).to be_truthy
end

it "should create an XML report in the given output directory" do
Expand Down
2 changes: 1 addition & 1 deletion spec/slather/coverage_service/coveralls_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
fixtures_project.post
expect(File.exist?("coveralls_json_file")).to be_falsy
fixtures_project.stub(:travis_job_id).and_return(nil)
expect { fixtures_project.post }.to raise_error
expect { fixtures_project.post }.to raise_error(StandardError)
expect(File.exist?("coveralls_json_file")).to be_falsy
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/slather/coverage_service/hardcover_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
fixtures_project.post
expect(File.exist?("hardcover_json_file")).to be_falsy
fixtures_project.stub(:jenkins_job_id).and_return(nil)
expect { fixtures_project.post }.to raise_error
expect { fixtures_project.post }.to raise_error(StandardError)
expect(File.exist?("hardcover_json_file")).to be_falsy
end
end
Expand Down

0 comments on commit 5a101fb

Please sign in to comment.