aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2014-12-26 15:13:08 -0700
committerSean Griffin <sean@thoughtbot.com>2014-12-26 15:13:08 -0700
commit35362817b16e97c9db07c5d2586a95009e747b28 (patch)
treec7ec3607bc3e1d644829462158f1e2b44a9f5642 /activerecord/test
parent3bbe88ecd7c6a21e01c4730fd6d2034338b9e034 (diff)
downloadrails-35362817b16e97c9db07c5d2586a95009e747b28.tar.gz
rails-35362817b16e97c9db07c5d2586a95009e747b28.tar.bz2
rails-35362817b16e97c9db07c5d2586a95009e747b28.zip
Fix new warning in ruby 2.2
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/relation/mutation_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/relation/mutation_test.rb b/activerecord/test/cases/relation/mutation_test.rb
index 71abac35cc..2443f10269 100644
--- a/activerecord/test/cases/relation/mutation_test.rb
+++ b/activerecord/test/cases/relation/mutation_test.rb
@@ -99,7 +99,7 @@ module ActiveRecord
end
test '#reorder!' do
- relation = self.relation.order('foo')
+ @relation = self.relation.order('foo')
assert relation.reorder!('bar').equal?(relation)
assert_equal ['bar'], relation.order_values
@@ -116,7 +116,7 @@ module ActiveRecord
end
test 'reverse_order!' do
- relation = Post.order('title ASC, comments_count DESC')
+ @relation = Post.order('title ASC, comments_count DESC')
relation.reverse_order!