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:
parent
6067d29a1f
commit
58becf1165
1 changed files with 1 additions and 1 deletions
|
@ -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!
|
||||
|
|
Loading…
Reference in a new issue