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