Skip to content

Commit

Permalink
Fix brittle spec
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwynne committed Jul 2, 2016
1 parent cc7eb89 commit 25d2ca5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spec/cucumber/formatter/html_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ module Formatter

describe "when writing the report to a file" do
before(:each) do
allow(@out).to receive(:respond_to?).with(:path, false).and_return(true)
expect(@out).to receive(:respond_to?).with(:path).and_return(true)
allow(@out).to receive(:respond_to?).with(:path).and_return(true)
expect(@out).to receive(:path).and_return('out/file.html')
run_defined_feature
@doc = Nokogiri.HTML(@out.string)
Expand Down

0 comments on commit 25d2ca5

Please sign in to comment.