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!