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

noreply at rubyforge.org noreply at rubyforge.org
Sun Jan 28 21:38:49 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: Closed
>Resolution: Rejected
Priority: 3
Submitted By: Tobias Grimm (e-tobi)
>Assigned to: David Chelimsky (dchelimsky)
>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


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

>Comment By: David Chelimsky (dchelimsky)
Date: 2007-01-29 02:38

Message:
http://rspec.rubyforge.org/documentation/expectations.html

Use this instead:

actual.should_not == 1


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

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