[rspec-users] Constant definition matcher

2008-01-24 Thread Nicolas Jacobeus
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
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users


Re: [rspec-users] Constant definition matcher

2008-01-24 Thread David Chelimsky
On Jan 24, 2008 8:56 AM, Nicolas Jacobeus [EMAIL PROTECTED] wrote:
 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 ?

Nope. Just an oversight. Feel free to contribute your solution to the
lighthouse (http://rspec.lighthouseapp.com).

Cheers,
David


 Thanks!

 --
 Nicolas Jacobeus
 Belighted.com - Web 2.0 Consulting  Training
 Frailers.net - Communauté Ruby on Rails francophone
 ___
 rspec-users mailing list
 rspec-users@rubyforge.org
 http://rubyforge.org/mailman/listinfo/rspec-users

___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users