Sha256: 3be5c69cc1aba1d7b5b0e4de35b500da3889984133aca97f837ebc7d494047e2
Contents?: true
Size: 553 Bytes
Versions: 8
Compression:
Stored size: 553 Bytes
Contents
require "spec_helper" describe Myfinance::Entities::CreditCardTransactionCollection do let(:entity_klass) { described_class } let(:params) { double(headers: {}, parsed_body: [{}]) } subject { described_class.new(params) } context "#build" do it "returns order collection" do expect(subject.build).to be_a(entity_klass) end it "returns order" do subject.build expect(subject.collection.count).to eq(1) expect(subject.collection.first).to be_a(Myfinance::Entities::CreditCardTransaction) end end end
Version data entries
8 entries across 8 versions & 1 rubygems