Permalink
Browse files

update the default scope test to take the model's default scope into …

…account
  • Loading branch information...
1 parent 0dd2f96 commit 1cfc39e7e7ab72db1f797fbf21cdd149edfadd22 @technoweenie technoweenie committed Feb 25, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/method_scoping_test.rb
@@ -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

0 comments on commit 1cfc39e

Please sign in to comment.