mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
order is not guaranteed by this select, so add an order and call first!
This commit is contained in:
@@ -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!
|
||||
|
||||
Reference in New Issue
Block a user