diff options
author | Matthew Draper <matthew@trebex.net> | 2016-10-08 02:52:43 +1030 |
---|---|---|
committer | Matthew Draper <matthew@trebex.net> | 2016-10-08 02:52:43 +1030 |
commit | fc0b62597f9c34bd028fd91457b8865eea42cc2d (patch) | |
tree | 36803808f659f872c0b0c9a19e855d74aba62ea7 /activerecord/test | |
parent | 3127e99d6e0d89149dca5c4815474b69012a86b7 (diff) | |
download | rails-fc0b62597f9c34bd028fd91457b8865eea42cc2d.tar.gz rails-fc0b62597f9c34bd028fd91457b8865eea42cc2d.tar.bz2 rails-fc0b62597f9c34bd028fd91457b8865eea42cc2d.zip |
Tweak a test so the queries match
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/relations_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/relations_test.rb b/activerecord/test/cases/relations_test.rb index dcaae5b462..2e18c43b1b 100644 --- a/activerecord/test/cases/relations_test.rb +++ b/activerecord/test/cases/relations_test.rb @@ -1522,7 +1522,7 @@ class RelationTest < ActiveRecord::TestCase assert_equal Post.where(author_id: 1).to_a, author_posts.to_a all_posts = relation.only(:limit) - assert_equal Post.limit(1).to_a.first, all_posts.first + assert_equal Post.limit(1).to_a, all_posts.to_a end def test_anonymous_extension |