[rspec-users] Simple code dosn't work

Zach Dennis zach.dennis at gmail.com
Wed Apr 11 22:39:06 UTC 2012

On Wed, Apr 11, 2012 at 12:47 PM, Alex Chaffee <alex at stinky.com> wrote:
>>>> 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.

If you make syntax errors then you won't get to far with
<insert-language-here>. While it is possible to make syntax errors
with RSpec it's also possible to make them outside of RSpec.

Your experience may be different than mine, but I don't recall making
more typos in RSpec because of its syntax as opposed to making typos
in a variety of languages (irregardless of if its a testing
framework). But it's entirely possible that my memory is rewriting

> 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? }

Yep, that's another way of doing it. It's not this little guy that
keeps me from test/unit, it's its cousins.


> --
> Alex Chaffee - alex at stinky.com
> http://alexchaffee.com
> http://twitter.com/alexch
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users



More information about the rspec-users mailing list