David Green
2007-Feb-18 19:38 UTC
[rspec-users] get() method in custom expectation matcher?
I''m trying to write a custom expectation: controller.should_require_login_for(:action_name). I''m using the example in the docs for ''Custom Expectation Matchers'' but I''m unsure how to make the get() method available to my ShouldRequireLogin class. I''ve tried requiring spec_helper but no joy. can anyone help? thanks -- View this message in context: http://www.nabble.com/get%28%29-method-in-custom-expectation-matcher--tf3249458.html#a9032900 Sent from the rspec-users mailing list archive at Nabble.com.
David Green
2007-Feb-18 19:51 UTC
[rspec-users] get() method in custom expectation matcher?
David Green wrote:> > I''m trying to write a custom expectation: > controller.should_require_login_for(:action_name). > I''m using the example in the docs for ''Custom Expectation Matchers'' but > I''m unsure how to make the get() method available to my ShouldRequireLogin > class. I''ve tried requiring spec_helper but no joy. > > can anyone help? > thanks >sorry, I should have said I''m using 0.8.0 with the rails plugin -- View this message in context: http://www.nabble.com/get%28%29-method-in-custom-expectation-matcher--tf3249458.html#a9033065 Sent from the rspec-users mailing list archive at Nabble.com.