diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2011-07-26 16:12:17 +0200 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2011-07-26 16:15:12 +0200 |
commit | 14c6fca9cd2353e3b949e2683b69fac7e356097e (patch) | |
tree | 18643e3f6934505fe3298d6d722c65216d26e94a /activerecord/test/cases | |
parent | 89f3d8a886ee6d678b60b5e5df4d3a11d93c53d4 (diff) | |
download | rails-14c6fca9cd2353e3b949e2683b69fac7e356097e.tar.gz rails-14c6fca9cd2353e3b949e2683b69fac7e356097e.tar.bz2 rails-14c6fca9cd2353e3b949e2683b69fac7e356097e.zip |
Revert "allow select to have multiple arguments"
This reverts commit 04cc446d178653d362510e79a22db5300d463161.
I reverted it because apparently we want to use: select([:a, :b])
instead of select(:a, :b), but there was no tests for that form.
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/base_test.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb index 84b66fdf49..f2f5b73626 100644 --- a/activerecord/test/cases/base_test.rb +++ b/activerecord/test/cases/base_test.rb @@ -123,11 +123,6 @@ class BasicsTest < ActiveRecord::TestCase assert_equal Topic.all.map(&:id).sort, topic_ids end - def test_select_symbol_for_many_arguments - topics = Topic.select(:id, :author_name).map{|topic| [topic.id, topic.author_name]}.sort - assert_equal Topic.all.map{|topic| [topic.id,topic.author_name]}.sort, topics - end - def test_table_exists assert !NonExistentTable.table_exists? assert Topic.table_exists? |