test/test_setup.rb in ringcentral_sdk-2.3.0 vs test/test_setup.rb in ringcentral_sdk-3.0.0
- old
+ new
@@ -5,12 +5,12 @@
@rcsdk = new_sdk
end
def new_sdk
RingCentralSdk::REST::Client.new do |config|
- config.app_key = 'my_app_key'
- config.app_secret = 'my_app_secret'
+ config.client_id = 'my_app_client_id'
+ config.client_secret = 'my_app_client_secret'
config.server_url = RingCentralSdk::RC_SERVER_SANDBOX
end
end
def test_main
@@ -29,11 +29,11 @@
stub_token = OAuth2::AccessToken.from_hash(@rcsdk.oauth2client, stub_token_hash)
OAuth2::Strategy::Password.any_instance.stubs(:get_token).returns(stub_token)
rcsdk = RingCentralSdk::REST::Client.new do |config|
- config.app_key = 'my_app_key'
- config.app_secret = 'my_app_secret'
+ config.client_id = 'my_app_client_id'
+ config.client_secret = 'my_app_client_secret'
config.server_url = RingCentralSdk::RC_SERVER_SANDBOX
config.username = 'my_username'
config.password = 'my_password'
end