spec/api_test_spec.rb in iyzipay-zebramo-1.0.37 vs spec/api_test_spec.rb in iyzipay-zebramo-1.0.38
- old
+ new
@@ -3,12 +3,12 @@
require_relative 'spec_helper'
RSpec.describe 'IyziPay' do
before :all do
@options = IyziPay::Options.new
- @options.api_key = 'your api key'
- @options.secret_key = 'your secret key'
- @options.base_url = 'https://sandbox-api.iyzipay.com'
+ @options.api_key = YAML.load_file('.secrets.yml')['test']['api_key']
+ @options.secret_key = YAML.load_file('.secrets.yml')['test']['secret_key']
+ @options.base_url = YAML.load_file('.secrets.yml')['test']['base_url']
end
it 'should test api' do
apiTest = IyziPay::Model::ApiTest.new.retrieve(@options)
begin