Skip to content

Commit

Permalink
test for token_url
Browse files Browse the repository at this point in the history
  • Loading branch information
frausto committed Feb 13, 2015
1 parent df7f2ad commit fe03a33
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ class ClientTest < StrategyTestCase
assert_equal 'https://www.facebook.com/dialog/oauth', strategy.client.options[:authorize_url]
end

test 'has correct token url' do
test 'has correct token url with versioning' do
@options = {:client_options => {:site => 'https://graph.facebook.net/v2.2'}}
assert_equal 'oauth/access_token', strategy.client.options[:token_url]
assert_equal 'https://graph.facebook.net/v2.2/oauth/access_token', strategy.client.token_url
end
end

Expand Down

0 comments on commit fe03a33

Please sign in to comment.