Sha256: 66597707a25d8dcd2cc5a281047a980004e20844f8eea55c1753525f07a12581

Contents?: true

Size: 508 Bytes

Versions: 4

Compression:

Stored size: 508 Bytes

Contents

describe OldPlaid::Category do
  context 'when a single category is found' do
    let(:category) { OldPlaid.category('17001013') }
    it { expect(category).to be_kind_of(OldPlaid::Category) }
  end

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

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

end

Version data entries

4 entries across 4 versions & 1 rubygems

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