On Oct 11, 2011, at 5:22 PM, Patrick J. Collins wrote:
> Having a spec that does:
> 
>       @my_model.alert_flag?.should be_true
> 
> Seemed a little goofy to me...  So I did:

You can do

@my_model.should be_alert_flag

A custom matcher isn't worth it in this case, in my opinion.

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

Reply via email to