aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/method_scoping_test.rb
diff options
context:
space:
mode:
authorMarcelo Giorgi <marklazz.uy@gmail.com>2010-09-15 12:26:54 -0300
committerSantiago Pastorino <santiago@wyeworks.com>2010-09-28 15:22:50 -0300
commitcdfd013dd7953fc87038c73ecddbaa8cfe29a301 (patch)
treeaec0099a5b67e415c9255c2c63fcb723dd4154dc /activerecord/test/cases/method_scoping_test.rb
parent1ef2b47fb12a94f960b34c4bb1e6ad1f9c900e18 (diff)
downloadrails-cdfd013dd7953fc87038c73ecddbaa8cfe29a301.tar.gz
rails-cdfd013dd7953fc87038c73ecddbaa8cfe29a301.tar.bz2
rails-cdfd013dd7953fc87038c73ecddbaa8cfe29a301.zip
Set attributes properly for model built from association with conditions [#5562 state:resolved]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'activerecord/test/cases/method_scoping_test.rb')
-rw-r--r--activerecord/test/cases/method_scoping_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/method_scoping_test.rb b/activerecord/test/cases/method_scoping_test.rb
index ffe16ffdfa..f3d3d62830 100644
--- a/activerecord/test/cases/method_scoping_test.rb
+++ b/activerecord/test/cases/method_scoping_test.rb
@@ -219,7 +219,7 @@ class MethodScopingTest < ActiveRecord::TestCase
new_comment = nil
VerySpecialComment.send(:with_scope, :create => { :post_id => 1 }) do
- assert_equal({:post_id => 1}, VerySpecialComment.scoped.send(:scope_for_create))
+ assert_equal({:post_id => 1, :type => 'VerySpecialComment' }, VerySpecialComment.scoped.send(:scope_for_create))
new_comment = VerySpecialComment.create :body => "Wonderful world"
end