mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix bad usage of #select with hash
This commit is contained in:
parent
f654c996dc
commit
5f1e394165
1 changed files with 1 additions and 1 deletions
|
@ -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 }
|
||||
|
|
Loading…
Reference in a new issue