aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/finder_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/cases/finder_test.rb')
-rw-r--r--activerecord/test/cases/finder_test.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/activerecord/test/cases/finder_test.rb b/activerecord/test/cases/finder_test.rb
index 93957ff50f..e936c56ab8 100644
--- a/activerecord/test/cases/finder_test.rb
+++ b/activerecord/test/cases/finder_test.rb
@@ -691,22 +691,6 @@ class FinderTest < ActiveRecord::TestCase
assert_kind_of Array, Topic.last(5)
end
- def test_first_should_respect_loaded_records
- authors = Author.order(:name)
-
- assert_equal authors(:bob), authors.first
-
- aaron = authors.create!(name: "Aaron")
-
- authors.load
-
- assert_no_queries do
- assert_equal aaron, authors.first
- assert_equal authors(:bob), authors.second
- assert_not_equal authors.first, authors.second
- end
- end
-
def test_unexisting_record_exception_handling
assert_raise(ActiveRecord::RecordNotFound) {
Topic.find(1).parent