Permalink
Browse files

Merge branch 'master' into nuscomerge

  • Loading branch information...
2 parents 1c50939 + af69b7c commit bb3a7050315effe8659861bf4624e5aa0fbf17b1 @jeremyevans committed Jul 22, 2008
Showing with 7 additions and 0 deletions.
  1. +1 −0 lib/sequel_model/record.rb
  2. +6 −0 spec/sequel_model/record_spec.rb
@@ -485,6 +485,7 @@ def set_restricted(hash, only, except)
raise Error, "method #{m} doesn't exist or access is restricted to it"
end
end
+ self
end
# Returns all methods that can be used for attribute
@@ -384,6 +384,12 @@
@o1.values.should == {:x => 1}
MODEL_DB.sqls.should == []
end
+
+ it "should return self" do
+ returned_value = @o1.set_with_params(:x => 1, :z => 2)
+ returned_value.should == @o1
+ MODEL_DB.sqls.should == []
+ end
end
describe Sequel::Model, "#update" do

0 comments on commit bb3a705

Please sign in to comment.