[rspec-devel] [ rspec-Bugs-8236 ] Problem with "nil" in failure messages raised from the Not class

noreply at rubyforge.org noreply at rubyforge.org
Mon Jan 29 22:15:28 EST 2007


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

Category: expectation module
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 3
Submitted By: Tobias Grimm (e-tobi)
>Assigned to: David Chelimsky (dchelimsky)
>Summary: Problem with "nil" in failure messages raised from the Not class

Initial Comment:
The failure messages raised from the not class contains a "nil", because the expected value gets not passed as the second argument to default_message().

try: "1.should_not == 1" which results in "1 should not == 1 nil"

see patch #8235, which contains exploit and fix:

http://rubyforge.org/tracker/index.php?func=detail&aid=8235&group_id=797&atid=3151

Tobias


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

>Comment By: David Chelimsky (dchelimsky)
Date: 2007-01-30 03:15

Message:
The messages are all being reworked right now in order to make them all more consistent and available to the diff functionality.

This bug is already addressed by that change as of rev 1442.

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

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


More information about the rspec-devel mailing list