1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

order is not guaranteed by this select, so add an order and call first!

This commit is contained in:
Aaron Patterson 2011-03-29 17:27:32 -07:00
parent 6067d29a1f
commit 58becf1165

View file

@ -209,7 +209,7 @@ class FinderTest < ActiveRecord::TestCase
end
def test_model_class_responds_to_first_bang
assert_equal topics(:first), Topic.first!
assert_equal topics(:first), Topic.order(:id).first!
assert_raises ActiveRecord::RecordNotFound do
Topic.delete_all
Topic.first!