aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2012-01-14 21:14:21 +0000
committerJon Leighton <j@jonathanleighton.com>2012-01-16 21:17:18 +0000
commita84a20e1cd2133932dd1bd33f862aa2605cc821e (patch)
tree9929ea49d9b6f06827cb10e3477e4b7c159f96d5 /activerecord/test
parentf6cc6651f2a32af42345641c3d17fc26ddb96b52 (diff)
downloadrails-a84a20e1cd2133932dd1bd33f862aa2605cc821e.tar.gz
rails-a84a20e1cd2133932dd1bd33f862aa2605cc821e.tar.bz2
rails-a84a20e1cd2133932dd1bd33f862aa2605cc821e.zip
store references as a string
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/relation_test.rb4
-rw-r--r--activerecord/test/cases/relations_test.rb8
2 files changed, 6 insertions, 6 deletions
diff --git a/activerecord/test/cases/relation_test.rb b/activerecord/test/cases/relation_test.rb
index 5a6a3b81de..b93a719687 100644
--- a/activerecord/test/cases/relation_test.rb
+++ b/activerecord/test/cases/relation_test.rb
@@ -140,13 +140,13 @@ module ActiveRecord
relation = Relation.new :a, :b
assert_equal [], relation.references_values
relation = relation.references(:foo).references(:omg, :lol)
- assert_equal [:foo, :omg, :lol], relation.references_values
+ assert_equal ['foo', 'omg', 'lol'], relation.references_values
end
def test_references_values_dont_duplicate
relation = Relation.new :a, :b
relation = relation.references(:foo).references(:foo)
- assert_equal [:foo], relation.references_values
+ assert_equal ['foo'], relation.references_values
end
end
end
diff --git a/activerecord/test/cases/relations_test.rb b/activerecord/test/cases/relations_test.rb
index a652a52f38..d8599b1e6d 100644
--- a/activerecord/test/cases/relations_test.rb
+++ b/activerecord/test/cases/relations_test.rb
@@ -1178,15 +1178,15 @@ class RelationTest < ActiveRecord::TestCase
def test_automatically_added_references
scope = Post.where(:comments => { :body => "Bla" })
- assert_equal [:comments], scope.references_values
+ assert_equal ['comments'], scope.references_values
scope = Post.where('comments.body' => 'Bla')
- assert_equal [:comments], scope.references_values
+ assert_equal ['comments'], scope.references_values
scope = Post.having(:comments => { :body => "Bla" })
- assert_equal [:comments], scope.references_values
+ assert_equal ['comments'], scope.references_values
scope = Post.having('comments.body' => 'Bla')
- assert_equal [:comments], scope.references_values
+ assert_equal ['comments'], scope.references_values
end
end