Permalink
Browse files

Backwards compatibility in test

  • Loading branch information...
1 parent 92766ba commit 2f76b3e79cf46d056887428aa3801d7c22b9c8e2 @iangreenleaf iangreenleaf committed Oct 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/active_record_test.rb
@@ -326,7 +326,7 @@ def test_dumping_many_associations_at_dump_time
objects = []
@dumper.listen { |type, id, attrs, obj| objects << [type, id, attrs, obj] }
- users = User.where(:login => %w[rtomayko kneath])
+ users = User.all(:conditions => {:login => %w[rtomayko kneath]})
@dumper.dump users, :associations => [:emails], :omit => [:profile]
assert_equal 5, objects.size

0 comments on commit 2f76b3e

Please sign in to comment.