« Return to Thread: get() method in custom expectation matcher?

get() method in custom expectation matcher?

by David Green :: Rate this Message:

Reply to Author | View in Thread

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

 « Return to Thread: get() method in custom expectation matcher?