Sha256: 69998461ab70a0195852259289ed0dda4b140110e661ad76d46446658b5ea55f

Contents?: true

Size: 382 Bytes

Versions: 1

Compression:

Stored size: 382 Bytes

Contents

require "spec_helper"

describe Octopus::CollectionProxy do
  describe "method dispatch" do
    before :each do
      @client = Client.using(:canada).create!
      @client.items << Item.using(:canada).create!
    end

    it "computes the size of the collection without loading it" do
      @client.items.size.should eq(1)
      @client.items.should_not be_loaded
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ar-octopus-0.8.2 spec/octopus/collection_proxy_spec.rb