test/client_test.rb in supersaas-api-client-0.10.0 vs test/client_test.rb in supersaas-api-client-1.0.0
- old
+ new
@@ -15,11 +15,11 @@
refute_nil @client.users
end
def test_request_methods
@client.account_name = 'Test'
- @client.password = 'testing123'
+ @client.api_key = 'testing123'
[:get,:put,:post,:delete].each do |method|
refute_nil @client.send(method, '/test')
assert_equal method.to_s.upcase, @client.last_request.method
assert_equal '/api/test.json', @client.last_request.path
end
@@ -29,16 +29,16 @@
end
def test_instance_configuration
Supersaas::Client.configure do |config|
config.account_name = 'account'
- config.password = 'password'
+ config.api_key = 'api_key'
config.host = 'http://test'
config.dry_run = true
config.verbose = true
end
assert_equal 'account', Supersaas::Client.configuration.account_name
- assert_equal 'password', Supersaas::Client.configuration.password
+ assert_equal 'api_key', Supersaas::Client.configuration.api_key
assert_equal 'http://test', Supersaas::Client.configuration.host
assert_equal true, Supersaas::Client.configuration.dry_run
assert_equal true, Supersaas::Client.configuration.verbose
end
end
\ No newline at end of file