Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…account
  • Loading branch information...
commit 1cfc39e7e7ab72db1f797fbf21cdd149edfadd22 1 parent 0dd2f96
risk danger olson technoweenie authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/test/cases/method_scoping_test.rb
2  activerecord/test/cases/method_scoping_test.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.