Sha256: 0d8a2c32d01679499c8f1326a7aa61dbe3b97aa9bc97d149181b153d7baa8644
Contents?: true
Size: 1.26 KB
Versions: 5
Compression:
Stored size: 1.26 KB
Contents
# Configuration specs - used in gem configuration describe '.config' do context 'has valid dev keys' do Plaid.config do |p| p.customer_id = 'test_id' p.secret = 'test_secret' p.environment_location = 'https://tartan.plaid.com/' end res = Plaid.add_user('connect','plaid_test','plaid_good','wells') it { expect(res).to be_instance_of Plaid::User } end context 'has valid production keys' do Plaid.config do |p| p.customer_id = 'test_id' p.secret = 'test_secret' p.environment_location = 'https://api.plaid.com/' end res = Plaid.add_user('connect','plaid_test','plaid_good','wells') it { expect(res).to be_instance_of Plaid::User } end context 'has invalid dev keys' do Plaid.config do |p| p.customer_id = 'test_id' p.secret = 'test_bad' p.environment_location = 'https://tartan.plaid.com/' end it { expect{Plaid.add_user('connect','plaid_bad','plaid_bad','wells')}.to raise_error } end context 'has invalid production keys' do Plaid.config do |p| p.customer_id = 'test_id' p.secret = 'test_bad' p.environment_location = 'https://api.plaid.com/' end it { expect{Plaid.add_user('connect','plaid_bad','plaid_bad','wells')}.to raise_error } end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
plaid-1.4.3 | spec/config_spec.rb |
plaid-1.4.2 | spec/config_spec.rb |
plaid-1.4.1 | spec/config_spec.rb |
plaid-1.4.0 | spec/config_spec.rb |
plaid-1.3.0 | spec/config_spec.rb |