spec/controllers/sessions_controller_spec.rb in twitter-auth-0.1.17 vs spec/controllers/sessions_controller_spec.rb in twitter-auth-0.1.20

- old
+ new

@@ -79,11 +79,11 @@ end end describe 'with proper info' do before do - @user = Factory.create(:twitter_oauth_user) + @user = Factory.create(:twitter_oauth_user, :twitter_id => '123') @time = Time.now @remember_token = ActiveSupport::SecureRandom.hex(10) Time.stub!(:now).and_return(@time) ActiveSupport::SecureRandom.stub!(:hex).and_return(@remember_token) @@ -175,10 +175,10 @@ response.should have_tag('form[action=/session][id=login_form][method=post]') end describe '#create' do before do - @user = Factory.create(:twitter_basic_user) + @user = Factory.create(:twitter_basic_user, :twitter_id => '123') end it 'should call logout_keeping_session! to remove session info' do controller.should_receive(:logout_keeping_session!) post :create