[rspec-users] artificial sugar causes cancer
lists-rspec at shopwatch.org
Mon Nov 20 14:41:11 EST 2006
Nick Sieger wrote:
> I also happen to like the underscore approach in the case of things like
> "array.should_be_empty" to test for "array.empty? == true". But I'd
> concede that syntax if we could settle on something else. Maybe I just
> need to retrain my own eyes to be more accepting of " array.should_be
> :empty". Is it just me?
No, I like .should_be_empty and its ilk too... but I understand that
method_missing is a huge can of worms, so I'll sadly give it up if it
makes the code more stable and gives the guys more time to work on stuff
like integration testing!
More information about the rspec-users