Hi, We are using omniauth for signup through Facebook and twitter. Is there any way i can check this by rspec controllers since it contains callbacks n all..so i think we may have to use mock models. If there is any link or documentation please let me know so that i can start implementing. -- Posted via http://www.ruby-forum.com/.
David Chelimsky
2011-Mar-01 11:08 UTC
[rspec-users] Writing Rspec for signup using facebook
On Mar 1, 2011, at 4:27 AM, Amit Kulkarni wrote:> Hi, > We are using omniauth for signup through Facebook and twitter. > Is there any way i can check this by rspec controllers since it contains > callbacks n all..so i think we may have to use mock models. > If there is any link or documentation please let me know so that i can > start implementing.omniauth is middleware, so it''s work is done before the controller action is invoked. To specify something about how your app uses omniauth you''d probably need to use request specs. What is it that you want to specify? Can you give an example?
Seemingly Similar Threads
- Omniauth facebook authentication failure
- Windows, Rails 3.1.3, Omniauth-BrowserID, SSL Erro
- “Routing Error No route matches {}” when omniauth failed on registration
- how to scope the /auth/:provider/callback , using OmniAuth for users and members
- linkedin login using omniauth