[rspec-users] default to just call the method?

Ashley Moran ashley.moran at patchspace.co.uk
Mon Jan 18 10:03:40 EST 2010


On Jan 18, 2010, at 9:31 am, Pat Maddox wrote:

> define_simple_predicate_matcher :rise_from_the_ashes?

As an extension, how about:

define_simple_predicate_matcher :risen_from_the_ashes => :rise_from_the_ashes?

Also, in general, I think specs look better without ? symbols on methods, my preference though

Ashley

-- 
http://www.patchspace.co.uk/
http://www.linkedin.com/in/ashleymoran



More information about the rspec-users mailing list