We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a750a6 commit 7cb1677Copy full SHA for 7cb1677
test/strategy_test.rb
@@ -10,3 +10,17 @@ def test_return_id_from_raw_info
10
assert_equal '123', strategy.uid
11
end
12
13
+
14
+class AccessTokenTest < StrategyTestCase
15
+ def setup
16
+ super
17
+ @request.stubs(:params).returns({ 'access_token' => 'valid_access_token' })
18
+ strategy.stubs(:client).returns(:client)
19
+ end
20
21
+ def test_build_access_token
22
+ token = strategy.build_access_token
23
+ assert_equal token.token, 'valid_access_token'
24
+ assert_equal token.client, :client
25
26
+end
test/test_helper.rb
@@ -16,6 +16,7 @@ def setup
@client_id = '123'
@client_secret = '53cr3tz'
+ @options = {}
def strategy
0 commit comments