Sha256: 7db65c146ea2af55ebf9d123ad27b8cc92341eaca005bf8548ca3e06586160f3

Contents?: true

Size: 744 Bytes

Versions: 4

Compression:

Stored size: 744 Bytes

Contents

describe OldPlaid::Institution do
  context 'when a single institution is found' do
    let(:institution) { OldPlaid.institution('5301a93ac140de84910000e0') }

    it { expect(institution).to be_kind_of(OldPlaid::Institution) }
    it { expect(institution.mfa).to be_kind_of(Array) }
    it { expect(institution.products).to be_kind_of(Array) }
    it { expect(institution.credentials).to be_kind_of(Hash) }
  end

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

  context 'when institution is not found' do
    it { expect { OldPlaid.institution('dumb_bank') }.to raise_error(OldPlaid::NotFound, 'unable to find institution') }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
old_plaid-2.8.2 spec/plaid/models/institution_spec.rb
old_plaid-1.7.1 spec/plaid/models/institution_spec.rb
old_plaid-2.7.2 spec/plaid/models/institution_spec.rb
old_plaid-2.7.1 spec/plaid/models/institution_spec.rb