On Wed, Apr 11, 2012 at 12:47 PM, Alex Chaffee <a...@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 history. > > 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. Zach > > -- > Alex Chaffee - a...@stinky.com > http://alexchaffee.com > http://twitter.com/alexch > > _______________________________________________ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users -- -- @zachdennis http://www.continuousthinking.com http://www.mutuallyhuman.com _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users