Sha256: e58e3d5fb365c80544423770416a4bbd85b3b53b3464ce185266ee513d84b527
Contents?: true
Size: 563 Bytes
Versions: 11
Compression:
Stored size: 563 Bytes
Contents
require 'spec_helper' describe Myfinance::Entities::PersonCollection do let(:response) do double( headers: {}, parsed_body: [ {} ] ) end subject { described_class.new(response) } describe "#build" do it "returns order collection" do expect(subject.build.class).to eql(Myfinance::Entities::PersonCollection) end it "returns order" do subject.build expect(subject.collection.count).to eq(1) expect(subject.collection.first.class).to eq(Myfinance::Entities::Person) end end end
Version data entries
11 entries across 11 versions & 1 rubygems