[rspec-users] Simple code dosn't work

Cynthia Kiser cnk at ugcs.caltech.edu
Thu Apr 12 04:23:46 UTC 2012

Quoting Zach Dennis <zach.dennis at gmail.com>:
> 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.

True. But I have found the english-like syntax of RSpec harder to
remember than the ugly Test::Unit syntax. It is the superiority of
RSpec's test organization - and its ubiquity - that made me persist.

Cynthia N. Kiser
cnk at ugcs.caltech.edu

More information about the rspec-users mailing list