Sha256: 118aecac8ce971f69c0c00c0d2e9c8c951d770c756b2b1cc8eb4dc5e4f439777

Contents?: true

Size: 674 Bytes

Versions: 5

Compression:

Stored size: 674 Bytes

Contents

# Institution specs
describe '#Institution' do

  before :all do
    Plaid.config do |p|
      p.customer_id = 'test_id'
      p.secret = 'test_secret'
      p.environment_location = 'https://tartan.plaid.com/'
    end
  end

  context 'when a single institution is found' do
    institution = Plaid.institution('5301a93ac140de84910000e0')
    it { expect(institution.class).to eq(Plaid::Institution) }
  end

  context 'when all institutions are found' do
    institution = Plaid.institution
    it { expect(institution).to be_kind_of(Array) }
  end

  context 'when institution is not found' do
    it { expect { Plaid.institution('dumb_bank') }.to raise_error }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
plaid-1.4.3 spec/institution_spec.rb
plaid-1.4.2 spec/institution_spec.rb
plaid-1.4.1 spec/institution_spec.rb
plaid-1.4.0 spec/institution_spec.rb
plaid-1.3.0 spec/institution_spec.rb