[rspec-devel] [ rspec-Bugs-13918 ] exception_from incorrectly returns a value when no Error occurs in specs

noreply at rubyforge.org noreply at rubyforge.org
Thu Sep 13 22:00:40 EDT 2007


Bugs item #13918, was opened at 2007-09-13 22:00
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=13918&group_id=797

Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Evan Light (sleight42)
Assigned to: Nobody (None)
Summary: exception_from incorrectly returns a value when no Error occurs in specs

Initial Comment:
In rspec_adapter.rb, if exception_from is invoked with a block that does not result in an Error, it will instead return the result of the called block.  Patch attached.

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=13918&group_id=797


More information about the rspec-devel mailing list