[rspec-users] Constant definition matcher

Nicolas Jacobeus njacobeus at gmail.com
Thu Jan 24 09:56:57 EST 2008


Hello all,

I need to specify that a class should define a constant.

I couldn't find something such as "should define_const('MY_CONST')" in  
the RSpec documentation, even though there are similar matchers such  
as "should respond_to".

I know I can write the matcher myself (that wouldn't be so difficult)  
but is there a reason ?

Thanks!

-- 
Nicolas Jacobeus
Belighted.com - Web 2.0 Consulting & Training
Frailers.net - Communauté Ruby on Rails francophone


More information about the rspec-users mailing list