strip leading "/" from the token_url
frausto
9 years ago
15 | 15 |
option :client_options, {
|
16 | 16 |
:site => 'https://graph.facebook.com',
|
17 | 17 |
:authorize_url => "https://www.facebook.com/dialog/oauth",
|
18 | |
:token_url => '/oauth/access_token'
|
|
18 |
:token_url => 'oauth/access_token'
|
19 | 19 |
}
|
20 | 20 |
|
21 | 21 |
option :token_params, {
|
16 | 16 |
end
|
17 | 17 |
|
18 | 18 |
test 'has correct token url' do
|
19 | |
assert_equal '/oauth/access_token', strategy.client.options[:token_url]
|
|
19 |
assert_equal 'oauth/access_token', strategy.client.options[:token_url]
|
20 | 20 |
end
|
21 | 21 |
end
|
22 | 22 |
|