test/unit/etsy/secure_client_test.rb in etsy-0.2.5 vs test/unit/etsy/secure_client_test.rb in etsy-0.2.6
- old
+ new
@@ -11,11 +11,11 @@
Etsy.stubs(:api_key).returns('key')
Etsy.stubs(:api_secret).returns('secret')
Etsy.stubs(:permission_scopes).returns(['scope_one', 'scope_two'])
OAuth::Consumer.stubs(:new).with('key', 'secret', {
- :site => 'http://sandbox',
+ :site => 'https://sandbox',
:request_token_path => '/v2/oauth/request_token?scope=scope_one+scope_two',
:access_token_path => '/v2/oauth/access_token',
}).returns('consumer')
client = SecureClient.new
@@ -29,10 +29,10 @@
Etsy.stubs(:api_key).returns('key')
Etsy.stubs(:api_secret).returns('secret')
Etsy.stubs(:permission_scopes).returns(['scope_one', 'scope_two'])
OAuth::Consumer.stubs(:new).with('key', 'secret', {
- :site => 'http://production',
+ :site => 'https://production',
:request_token_path => '/v2/oauth/request_token?scope=scope_one+scope_two',
:access_token_path => '/v2/oauth/access_token',
}).returns('consumer')
client = SecureClient.new