Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make sure that fixtures are loaded before finding

  • Loading branch information...
commit 76ea9f9714ff08cfffec16fc3672480a9f46f5d9 1 parent 4bb823b
@amatsuda amatsuda authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 activerecord/test/cases/scoping/relation_scoping_test.rb
View
4 activerecord/test/cases/scoping/relation_scoping_test.rb
@@ -11,6 +11,10 @@
class RelationScopingTest < ActiveRecord::TestCase
fixtures :authors, :developers, :projects, :comments, :posts, :developers_projects
+ setup do
+ developers(:david)
+ end
+
def test_reverse_order
assert_equal Developer.order("id DESC").to_a.reverse, Developer.order("id DESC").reverse_order
end
Please sign in to comment.
Something went wrong with that request. Please try again.