[rspec-users] How to do controller.stub(:some_method) at request test when using rspec2

Jiang Guimin lists at ruby-forum.com
Thu Mar 10 03:35:53 EST 2011


Kenrick Chien wrote in post #986591:
> pass the controller name, without quotes:
>   describe DynamicFlowsController
>
> then
>   controller.stub
>
> should work, and then you can refactor the dependency on save_u_and_node
> later.
>
> Ken


Thanks, it's work now! But I can't get the controller object for
integration test.

-- 
Posted via http://www.ruby-forum.com/.


More information about the rspec-users mailing list