Sha256: 3a6d00537b4a9960b34af49ad3b66fe9f80f2042a954e01a1f6117d9fd2e8794
Contents?: true
Size: 595 Bytes
Versions: 15
Compression:
Stored size: 595 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
15 entries across 15 versions & 1 rubygems