Commit 03ffe1d2 authored by Sergey Gernyak's avatar Sergey Gernyak

Added to Account file paths for crt and key

parent ec7e8d97
module BetfairApiNgRails
class Account < Struct.new(:username, :password, :app_key)
class Account < Struct.new(:username, :password, :app_key, :crt_filepath, :key_filepath)
end
end
......@@ -4,11 +4,15 @@ describe BetfairApiNgRails::Account do
let(:username) { 'user001' }
let(:password) { 'some_password' }
let(:app_key) { 'n34f73o48fn' }
let(:opts) { [username, password, app_key] }
let(:crt_filepath) { 'cn2i3nc2f32' }
let(:key_filepath) { 'f23f23f23f' }
let(:opts) { [username, password, app_key, crt_filepath, key_filepath] }
subject(:account) { described_class.new(*opts) }
its(:username) { is_expected.to eq username }
its(:password) { is_expected.to eq password }
its(:app_key) { is_expected.to eq app_key }
its(:crt_filepath) { is_expected.to eq crt_filepath }
its(:key_filepath) { is_expected.to eq key_filepath }
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment