omniauth-gust 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +0 -2
- data/lib/omniauth-gust/version.rb +1 -1
- data/spec/omniauth/strategies/gust_spec.rb +4 -4
- data/spec/support/shared_examples.rb +1 -15
- metadata +2 -2
data/README.md
CHANGED
@@ -23,7 +23,7 @@ describe OmniAuth::Strategies::Gust do
|
|
23
23
|
|
24
24
|
describe '#client' do
|
25
25
|
it 'has correct Gust site' do
|
26
|
-
subject.client.site.should eq('https://
|
26
|
+
subject.client.site.should eq('https://gust.com')
|
27
27
|
end
|
28
28
|
|
29
29
|
it 'has correct authorize url' do
|
@@ -69,9 +69,9 @@ describe OmniAuth::Strategies::Gust do
|
|
69
69
|
end
|
70
70
|
|
71
71
|
it 'returns the Gust profile page link as the Gust url' do
|
72
|
-
@raw_info['profile_url'] = 'https://
|
72
|
+
@raw_info['profile_url'] = 'https://gust.com/c/wasabit'
|
73
73
|
subject.info['urls'].should be_a(Hash)
|
74
|
-
subject.info['urls']['profile'].should eq('https://
|
74
|
+
subject.info['urls']['profile'].should eq('https://gust.com/c/wasabit')
|
75
75
|
end
|
76
76
|
|
77
77
|
end
|
@@ -83,7 +83,7 @@ describe OmniAuth::Strategies::Gust do
|
|
83
83
|
subject.stub(:access_token) { @access_token }
|
84
84
|
end
|
85
85
|
|
86
|
-
it 'performs a GET to https://
|
86
|
+
it 'performs a GET to https://gust.com/r/oauth/user_details' do
|
87
87
|
@access_token.stub(:get) { double('OAuth2::Response').as_null_object }
|
88
88
|
@access_token.should_receive('options')
|
89
89
|
@access_token.should_receive(:get).with('/r/oauth/user_details')
|
@@ -7,20 +7,6 @@ shared_examples 'an oauth2 strategy' do
|
|
7
7
|
end
|
8
8
|
end
|
9
9
|
|
10
|
-
describe '#authorize_params' do
|
11
|
-
it 'should include any authorize params passed in the :authorize_params option' do
|
12
|
-
@options = { :authorize_params => { :foo => 'bar', :baz => 'zip' } }
|
13
|
-
subject.authorize_params['foo'].should eq('bar')
|
14
|
-
subject.authorize_params['baz'].should eq('zip')
|
15
|
-
end
|
16
|
-
|
17
|
-
it 'should include top-level options that are marked as :authorize_options' do
|
18
|
-
@options = { :authorize_options => [:scope, :foo], :scope => 'bar', :foo => 'baz' }
|
19
|
-
subject.authorize_params['scope'].should eq('bar')
|
20
|
-
subject.authorize_params['foo'].should eq('baz')
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
10
|
describe '#token_params' do
|
25
11
|
it 'should include any authorize params passed in the :authorize_params option' do
|
26
12
|
@options = { :token_params => { :foo => 'bar', :baz => 'zip' } }
|
@@ -34,4 +20,4 @@ shared_examples 'an oauth2 strategy' do
|
|
34
20
|
subject.token_params['foo'].should eq('baz')
|
35
21
|
end
|
36
22
|
end
|
37
|
-
end
|
23
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-gust
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-08-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: omniauth
|