Sha256: 066ad4d8e75a407c06f0135bf0f4445c67d90b99cda5418539e48e8b790f3567
Contents?: true
Size: 567 Bytes
Versions: 9
Compression:
Stored size: 567 Bytes
Contents
require "spec_helper" describe Myfinance::Entities::FinancialTransactionCollection 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::FinancialTransaction) end end end
Version data entries
9 entries across 9 versions & 1 rubygems