[rspec-devel] [ rspec-Bugs-8236 ] Problem with "nil" in failure messages raised from the Not class
noreply at rubyforge.org
noreply at rubyforge.org
Sun Jan 28 19:46:24 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: Open
Resolution: None
Priority: 3
Submitted By: Tobias Grimm (e-tobi)
Assigned to: Nobody (None)
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
----------------------------------------------------------------------
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