[rspec-users] Writing Rspec for signup using facebook

David Chelimsky dchelimsky at gmail.com
Tue Mar 1 06:08:09 EST 2011

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?

More information about the rspec-users mailing list