Omniauth testing in rails after railscast 241
I'm a bit new to rails so bear with me.

I've been through the rails tutorial by Michael Hartl and am now trying to create my own rails app.

Rather than using a custom authentication method like Michael created in his tutorial I'm trying to use omniauth-twitter for the authentication. I've implemented this based on the railscast #241 video and it works fine.

I'm now trying to create some tests using rspec to the app for the user model and sessions controller that I've just created (I know that's wrong order that you're supposed to do things but....). 

I'm open to suggestions about what tests I should setup initially but I think I'm going to need tests for the following:

* checking a new user gets added to my "users" database when they go through the twitter authentication for the first time
* checking that when a user logs in via twitter link it pulls the correct details from the users database if they're an existing user
* any other tests that you think would help me on my way

Code snippets would be very much appreciated, particularly for the twitter authentication tests because I can't get this to work. This ( http://stackoverflow.com/questions/5864703/testing-omniauth-in-rails ) was the closest I came to telling me the code to do this but I wasn't quite sure how I needed to change it to get it to work for me.
Omniauth testing in rails after railscast 241
===

I'm a bit new to rails so bear with me.

I've been through the rails tutorial by Michael Hartl and am now trying to create my own rails app.

Rather than using a custom authentication method like Michael created in his tutorial I'm trying to use omniauth-twitter for the authentication. I've implemented this based on the railscast #241 video and it works fine.

I'm now trying to create some tests using rspec to the app for the user model and sessions controller that I've just created (I know that's wrong order that you're supposed to do things but....). 

I'm open to suggestions about what tests I should setup initially but I think I'm going to need tests for the following:

* checking a new user gets added to my "users" database when they go through the twitter authentication for the first time
* checking that when a user logs in via twitter link it pulls the correct details from the users database if they're an existing user
* any other tests that you think would help me on my way

Code snippets would be very much appreciated, particularly for the twitter authentication tests because I can't get this to work. This ( http://stackoverflow.com/questions/5864703/testing-omniauth-in-rails ) was the closest I came to telling me the code to do this but I wasn't quite sure how I needed to change it to get it to work for me.