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

Version Path
myfinance-1.4.1 spec/lib/myfinance/entities/person_collection_spec.rb
myfinance-1.4.0 spec/lib/myfinance/entities/person_collection_spec.rb
myfinance-1.3.1 spec/lib/myfinance/entities/person_collection_spec.rb
myfinance-1.3.0 spec/lib/myfinance/entities/person_collection_spec.rb
myfinance-1.2.1 spec/lib/myfinance/entities/person_collection_spec.rb
myfinance-1.2.0 spec/lib/myfinance/entities/person_collection_spec.rb
myfinance-1.1.0 spec/lib/myfinance/entities/person_collection_spec.rb
myfinance-1.0.0 spec/lib/myfinance/entities/person_collection_spec.rb
myfinance-0.7.0 spec/lib/myfinance/entities/person_collection_spec.rb
myfinance-0.6.0 spec/lib/myfinance/entities/person_collection_spec.rb
myfinance-0.5.0 spec/lib/myfinance/entities/person_collection_spec.rb