Sha256: c199b273f2bb2d82a93f30b1b07b1b3aab8d9e728105d6d256c2b184222257f8
Contents?: true
Size: 1 KB
Versions: 2
Compression:
Stored size: 1 KB
Contents
# encoding: utf-8 require "spec_helper" describe "update_attributes" do describe_example "update_attributes/embeds_one" do it "updates customer item name" do @root.item.id.should == "2000" @root.item.name.should == "name" end end describe_example "update_attributes/simple" do it "updates customer login" do @root.login.should == "newjackiechan2010" end end describe_example "update_attributes/embeds_many" do it "updates customer items" do @root.items.count.should == 1 @root.items.first.id.should == 3000 end end describe_example "update_attributes/has_one" do it "updates customer billing" do @root.billing.should_not be_nil @root.billing.login.should == "new_billing_login" end end describe_example "update_attributes/has_many" do it "updates customer services" do @root.services.should_not be_nil @root.services.count.should == 1 @root.services.first.name.should == "new_service_name" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rest_model-0.1.3 | spec/integration/update_attributes_spec.rb |
rest_model-0.1.2 | spec/integration/update_attributes_spec.rb |