include OAuth::Helper
- setup do
- stub_request(:get, "http://api.hostip.info/country.php?ip=127.0.0.1")
+ def setup
+ stub_hostip_requests
end
def test_oauth10_web_app
assert_not_nil token.created_at
assert_nil token.authorized_at
assert_nil token.invalidated_at
- assert_equal options[:oauth_callback], token.callback_url
+ assert_equal_allowing_nil options[:oauth_callback], token.callback_url
assert_allowed token, client.permissions
token