Sha256: d9b3fea3ba6badba9e92310c9e730238fead4d31328c69efdd20fc5ca8691de7

Contents?: true

Size: 436 Bytes

Versions: 6

Compression:

Stored size: 436 Bytes

Contents

# frozen_string_literal: true

RSpec.describe FinApps::REST::States do
  include SpecHelpers::Client

  describe '#list' do
    subject(:list) { described_class.new(client).list }

    it_behaves_like 'an API request'
    it_behaves_like 'a successful request'

    it('returns a list of hashes with the following keys: code, label, type') do
      expect(list[RESULTS].first.keys).to match_array(%i[code label type])
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
finapps-6.13.1 spec/rest/states_spec.rb
finapps-6.13.0 spec/rest/states_spec.rb
finapps-6.12.0 spec/rest/states_spec.rb
finapps-6.11.0 spec/rest/states_spec.rb
finapps-6.10.2 spec/rest/states_spec.rb
finapps-6.10.1 spec/rest/states_spec.rb