Skip to content

Commit

Permalink
Merge pull request #107 from cucumber/add-with_filtered_backtrace-to-…
Browse files Browse the repository at this point in the history
…unknown-result

Add with_filtered_backtrace method to unknown result
  • Loading branch information
mattwynne authored Jul 2, 2016
2 parents d78d69b + a36d1cf commit d3a6325
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 @@ -31,6 +31,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 @@ -119,6 +119,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 d3a6325

Please sign in to comment.