Skip to content

Commit

Permalink
Move #status to #to_sym on Cucumber::RunningTestCase
Browse files Browse the repository at this point in the history
  • Loading branch information
pdswan committed May 1, 2015
1 parent de9a794 commit d545d3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/cucumber/running_test_case.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def exception
end

def status
@result.status
@result.to_sym
end

def failed?
Expand Down
4 changes: 2 additions & 2 deletions spec/cucumber/running_test_case_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module Cucumber

attr_accessor :wrapped_test_case, :core_test_case

let(:result) { double(:result, status: double(:status)) }
let(:result) { double(:result, to_sym: :status_symbol) }

before do
receiver = double.as_null_object
Expand Down Expand Up @@ -46,7 +46,7 @@ module Cucumber
end

it "exposes properties of the result" do
expect(wrapped_test_case.status).to eq result.status
expect(wrapped_test_case.status).to eq result.to_sym
end
end

Expand Down

0 comments on commit d545d3c

Please sign in to comment.