test/test_http.rb in whatser-0.2.0 vs test/test_http.rb in whatser-0.3.0
- old
+ new
@@ -21,9 +21,15 @@
@client.oauth_token = '123'
expected = {:query => {:oauth_token => '123'}, :body => {:extra => 1}}
assert_equal expected, @client.send(:request_options, {:body => {:extra => 1} })
end
+ def test_request_options_with_client_auth
+ @client.api_key = '123'
+ expected = {:query => {:client_id => '123'}, :body => nil}
+ assert_equal expected, @client.send(:request_options, {}, {:auth => :key})
+ end
+
def test_base_uri_on_included
assert_equal @client.api_uri, Whatser::Http.base_uri
end
def test_request