[rspec-users] Simple code dosn't work

Alex Chaffee alex at stinky.com
Wed Apr 11 16:47:51 UTC 2012

>>> j.even?should be true

>> j.even?.should be true

> j.even?.should be_true

Not to ignite a flame war, but this is my biggest problem with RSpec:
Unless you're an expert at Ruby syntax already, it's really easy to make
punctuation mistakes.

And of course, it should be

j.should be_even

(though following Skitt's Law, I probably got that wrong)

 - A

P.S. In Wrong, it's

assert { j.even? }

Alex Chaffee - alex at stinky.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20120411/ab525354/attachment.html>

More information about the rspec-users mailing list