aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-12-03 10:44:41 -0200
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-12-03 10:45:40 -0200
commit5f1e39416531746c74bd88a9406a119833700165 (patch)
treef5f81ceb094e72d266de2e7df841a79f7459f286
parentf654c996dcf5e4e87be887246503cea6f881e028 (diff)
downloadrails-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.rb2
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 }