[rspec-devel] subject.should_be true

David Chelimsky dchelimsky at gmail.com
Sun Oct 15 22:31:13 EDT 2006

As things stand now, the following will all pass:

true.should_be true
"true".should_be true
"false".should_be true
3.should_be true

My feeling is that "should_be true" should only pass if it returns
boolean true even though ruby says that non-nil/non-false is true.

Anybody else?


More information about the rspec-devel mailing list