Sha256: df767a6ad3602c3a0772168f22445c975d4b92d4ab57860b77f8cbe9b7706638
Contents?: true
Size: 596 Bytes
Versions: 2
Compression:
Stored size: 596 Bytes
Contents
require 'spec_helper' module ApiResource module Associations describe HasOneRemoteObjectProxy do before(:all) do TestResource.reload_resource_definition end context "#load" do it "correctly loads data from an endpoint that returns a single record" do tr = TestResource.new( :has_one_object => {:service_uri => "/has_one_objects/1.json"} ) tr.has_one_object.internal_object.should be_instance_of( HasOneObject ) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
api_resource-0.6.6 | spec/lib/associations/has_one_remote_object_proxy_spec.rb |
api_resource-0.6.5 | spec/lib/associations/has_one_remote_object_proxy_spec.rb |