diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-12-03 10:44:41 -0200 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-12-03 10:45:40 -0200 |
commit | 5f1e39416531746c74bd88a9406a119833700165 (patch) | |
tree | f5f81ceb094e72d266de2e7df841a79f7459f286 | |
parent | f654c996dcf5e4e87be887246503cea6f881e028 (diff) | |
download | rails-5f1e39416531746c74bd88a9406a119833700165.tar.gz rails-5f1e39416531746c74bd88a9406a119833700165.tar.bz2 rails-5f1e39416531746c74bd88a9406a119833700165.zip |
Fix bad usage of #select with hash
-rw-r--r-- | activerecord/test/cases/scoping/default_scoping_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/scoping/default_scoping_test.rb b/activerecord/test/cases/scoping/default_scoping_test.rb index 11dd32bfb8..71754cf0a2 100644 --- a/activerecord/test/cases/scoping/default_scoping_test.rb +++ b/activerecord/test/cases/scoping/default_scoping_test.rb @@ -178,7 +178,7 @@ class DefaultScopingTest < ActiveRecord::TestCase def test_unscope_select expected = Developer.order('salary ASC').collect { |dev| dev.name } - received = Developer.order('salary DESC').reverse_order.select(:name => "Jamis").unscope(:select).collect { |dev| dev.name } + received = Developer.order('salary DESC').reverse_order.select(:name).unscope(:select).collect { |dev| dev.name } assert_equal expected, received expected_2 = Developer.all.collect { |dev| dev.id } |