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? _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users