Writing Rspec for signup using facebook

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.

On Mar 1, 2011, at 4:27 AM, Amit K. 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?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs