Skip to content

Commit

Permalink
Add with_filtered_backtrace method to unknown result
Browse files Browse the repository at this point in the history
  • Loading branch information
danascheider committed May 17, 2016
1 parent e7fb8b7 commit a36d1cf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/cucumber/core/test/result.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ class Unknown
def describe_to(visitor, *args)
self
end

def with_filtered_backtrace(filter)
self
end
end

class Passed
Expand Down
4 changes: 4 additions & 0 deletions spec/cucumber/core/test/result_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ module Cucumber::Core::Test
result.describe_to(visitor, args)
end

it "defines a with_filtered_backtrace method" do
expect(result.with_filtered_backtrace(double("filter"))).to eql result
end

specify { expect( result.to_sym ).to eq :unknown }

specify { expect( result ).not_to be_passed }
Expand Down

0 comments on commit a36d1cf

Please sign in to comment.