Sha256: 7740fa4e2bd738df278799d9980c7b4e48e7199aecbadaf7d28f17904f45b9c1
Contents?: true
Size: 645 Bytes
Versions: 5
Compression:
Stored size: 645 Bytes
Contents
require 'spec_helper.rb' # Category specs describe '#Category' 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 category is found' do category = Plaid.category('17001013') it { expect(category.class).to eq (Plaid::Category) } end context 'when all categories are found' do category = Plaid.category it { expect(category).to be_kind_of(Array)} end context 'when category is not found' do it { expect { Plaid.category('dumb_cat') }.to raise_error } end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
plaid-1.4.3 | spec/category_spec.rb |
plaid-1.4.2 | spec/category_spec.rb |
plaid-1.4.1 | spec/category_spec.rb |
plaid-1.4.0 | spec/category_spec.rb |
plaid-1.3.0 | spec/category_spec.rb |