Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add with_filtered_backtrace method to unknown result #107

Merged
merged 1 commit into from
Jul 2, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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