twitter-auth 0.1.5 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -34,9 +34,18 @@ describe TwitterAuth::OauthUser do
34
34
 
35
35
  it 'should return the user if he/she exists' do
36
36
  user = Factory.create(:twitter_oauth_user, :login => 'twitterman')
37
+ user.reload
37
38
  User.identify_or_create_from_access_token(@token).should == user
38
39
  end
39
40
 
41
+ it 'should update the access_token and access_secret for the user if he/she exists' do
42
+ user = Factory.create(:twitter_oauth_user, :login => 'twitterman', :access_token => 'someothertoken', :access_secret => 'someothersecret')
43
+ User.identify_or_create_from_access_token(@token)
44
+ user.reload
45
+ user.access_token.should == @token.token
46
+ user.access_secret.should == @token.secret
47
+ end
48
+
40
49
  it 'should update the user\'s attributes based on the twitter info' do
41
50
  user = Factory.create(:twitter_oauth_user, :login => 'twitterman', :name => 'Not Twitter Man')
42
51
  User.identify_or_create_from_access_token(@token).name.should == 'Twitter Man'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitter-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bleigh