spec/api-client/parser_spec.rb in api-client-1.4.1 vs spec/api-client/parser_spec.rb in api-client-1.5.0

- old
+ new

@@ -41,6 +41,26 @@ it "should return the response code and a nil body" do ApiClient::Base._response(@response).should == ['201', nil] end end end + + describe "#remote_object" do + context "on a class without remote object specification" do + it "should return the class name" do + User.remote_object.should == "user" + end + end + + context "on a class with remote object specification" do + it "should return the class name" do + Admin.remote_object.should == "user" + end + end + end + + describe "#remote_object=" do + it "should set the remote object name" do + Admin.remote_object.should == "user" + end + end end \ No newline at end of file