Sha256: 0ffed048ee25091e56947d581691d2b72c5e8fde6a70ee47fe1f4bf4beecc255

Contents?: true

Size: 444 Bytes

Versions: 1

Compression:

Stored size: 444 Bytes

Contents

require 'spec_helper'

module ApiResource
  module Associations
    
    describe HasManyRemoteObjectProxy do

      before(:all) do
        TestResource.reload_resource_definition
      end

      context "#<<" do
        
        it "implements the shift operator" do
          tr = TestResource.new
          tr.has_many_objects << HasManyObject.new

          tr.has_many_objects.length.should be 1
        end

      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
api_resource-0.6.5 spec/lib/associations/has_many_remote_object_proxy_spec.rb