Skip to content

Commit

Permalink
update the default scope test to take the model's default scope into …
Browse files Browse the repository at this point in the history
…account
  • Loading branch information
technoweenie committed Feb 25, 2009
1 parent 0dd2f96 commit 1cfc39e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/test/cases/method_scoping_test.rb
Expand Up @@ -597,7 +597,7 @@ def test_nested_scope
end

def test_named_scope
expected = Developer.find(:all, :order => 'name DESC').collect { |dev| dev.salary }
expected = Developer.find(:all, :order => 'salary DESC, name DESC').collect { |dev| dev.salary }
received = DeveloperOrderedBySalary.by_name.find(:all).collect { |dev| dev.salary }
assert_equal expected, received
end
Expand Down

0 comments on commit 1cfc39e

Please sign in to comment.