test/test_foursquare.rb in whatser-0.2.0 vs test/test_foursquare.rb in whatser-0.3.0
- old
+ new
@@ -1,7 +1,16 @@
require 'helper'
class TestFoursquare < Test::Unit::TestCase
+ def setup
+ @client = Whatser::Client.new(:oauth_token => '1234')
+ end
+
def test_key
assert_equal 'foursquare', Whatser::Foursquare.new.key
+ end
+
+ def test_connection_url
+ expected = "#{@client.api_uri}/oauth/services/foursquare/authorize"
+ assert_equal expected, @client.foursquare.connection_url
end
end
\ No newline at end of file