Skip to content

Commit

Permalink
Add explicit test for working is_a? on Failure objects.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimweirich committed Jan 8, 2013
1 parent 19f39de commit 04cae90
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/lib/rspec/given/failure_spec.rb
Expand Up @@ -12,4 +12,6 @@
Then { lambda { failure != 0 }.should raise_error(StandardError, "Oops") }
Then { lambda { failure =~ 0 }.should raise_error(StandardError, "Oops") }
Then { lambda { ! failure }.should raise_error(StandardError, "Oops") }

Then { failure.is_a?(RSpec::Given::Failure).should be_true }
end

0 comments on commit 04cae90

Please sign in to comment.