Sha256: 10a674aedfb7e0278ed001fb3a57bae2d7abe32de04129f01c547f1439625d04
Contents?: true
Size: 796 Bytes
Versions: 9
Compression:
Stored size: 796 Bytes
Contents
# frozen_string_literal: true require 'spec_helpers/client' RSpec.describe FinApps::REST::Institutions do include SpecHelpers::Client describe '#list' do subject(:institutions) { FinApps::REST::Institutions.new(client) } context 'when search_term is missing' do let(:list) { subject.list(nil) } it { expect { list }.to raise_error(FinAppsCore::MissingArgumentsError) } end context 'when proper search_term is provided' do let(:list) { subject.list(:search_term) } it { expect { list }.not_to raise_error } it('returns an array') { expect(list).to be_a(Array) } it('performs a get and returns institution array') { expect(list[0]).to be_a(Array) } it('returns no error messages') { expect(list[1]).to be_empty } end end end
Version data entries
9 entries across 9 versions & 1 rubygems