test for token_url
frausto
9 years ago
15 | 15 | assert_equal 'https://www.facebook.com/dialog/oauth', strategy.client.options[:authorize_url] |
16 | 16 | end |
17 | 17 | |
18 | test 'has correct token url' do | |
18 | test 'has correct token url with versioning' do | |
19 | @options = {:client_options => {:site => 'https://graph.facebook.net/v2.2'}} | |
19 | 20 | assert_equal 'oauth/access_token', strategy.client.options[:token_url] |
21 | assert_equal 'https://graph.facebook.net/v2.2/oauth/access_token', strategy.client.token_url | |
20 | 22 | end |
21 | 23 | end |
22 | 24 |