[rspec-devel] [ rspec-Bugs-8237 ] "should_not_be ==" doesn't work

noreply at rubyforge.org noreply at rubyforge.org
Sun Jan 28 19:55:36 EST 2007


Bugs item #8237, was opened at 2007-01-29 00:55
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=8237&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: "should_not_be ==" doesn't work

Initial Comment:
Even if it's marked as "gone in 0.9" it fails in 0.7.5.1:

"1.should_not_be == 1" runs successfully, where it should fail.

Cause of the problem is Not.be() using :no_arg instead of :___no_arg. The expected argument of the method be() in class Not is passed from should_not_be() with :___no_arg.

Tobias


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

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


More information about the rspec-devel mailing list