Sha256: 146ade6c1a9232c646cc594f2e31bbb1a8916c2265ce78776735c601eadb2eb1

Contents?: true

Size: 567 Bytes

Versions: 11

Compression:

Stored size: 567 Bytes

Contents

require "spec_helper"

describe Myfinance::Entities::ClassificationCenterCollection 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::ClassificationCenter)
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

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