Sha256: 668998559287f7c7195248ee89519e756ef019a3431898cde2d1fdecd0eb6569

Contents?: true

Size: 661 Bytes

Versions: 18

Compression:

Stored size: 661 Bytes

Contents

require 'spec_helper'

describe "ActiveZuora::CollectionProxy" do

  it "should initialize" do
    cp = Z::CollectionProxy.new
    expect(cp).to be_empty
    cp = Z::CollectionProxy.new([Z::SubscribeRequest.new])
    expect(cp).not_to be_empty
  end

  it "should respond to enumerable methods" do
    cp = Z::CollectionProxy.new([Z::SubscribeRequest.new])
    cp.each do |cp|
      expect(cp)
    end
    cp.inject do |memo,cp|
      expect(memo)
      expect(cp)
    end
  end

  it "should respond to the batch_subscribe method" do
    cp = Z::CollectionProxy.new([Z::SubscribeRequest.new])
    expect(cp.respond_to?(:batch_subscribe)).to eq(true)
  end

end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
active_zuora-2.6.0 spec/collection_proxy_spec.rb
active_zuora-2.5.4 spec/collection_proxy_spec.rb
active_zuora-2.5.3 spec/collection_proxy_spec.rb
active_zuora-2.5.2 spec/collection_proxy_spec.rb
active_zuora-2.5.1 spec/collection_proxy_spec.rb
active_zuora-2.5.0 spec/collection_proxy_spec.rb
active_zuora-2.4.1 spec/collection_proxy_spec.rb
active_zuora-2.4.0 spec/collection_proxy_spec.rb
active_zuora-2.3.1 spec/collection_proxy_spec.rb
active_zuora-2.3.0 spec/collection_proxy_spec.rb
active_zuora-2.2.7 spec/collection_proxy_spec.rb
active_zuora-2.2.6 spec/collection_proxy_spec.rb
active_zuora-2.2.5 spec/collection_proxy_spec.rb
active_zuora-2.2.4 spec/collection_proxy_spec.rb
active_zuora-2.2.3 spec/collection_proxy_spec.rb
active_zuora-2.2.2 spec/collection_proxy_spec.rb
active_zuora-2.2.1 spec/collection_proxy_spec.rb
active_zuora-2.2.0 spec/collection_proxy_spec.rb