aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/eager_test.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-06-06 09:01:31 +0900
committerRyuta Kamizono <kamipo@gmail.com>2017-06-06 09:03:54 +0900
commit669758fb6183f7fc9b13a44143f6b07ef0fd230b (patch)
treef3710fa8f4cf199365261030b48ff154415ccf99 /activerecord/test/cases/associations/eager_test.rb
parent2fa9de587e5affe8ddfdca7ec7a50051bda2f3e9 (diff)
downloadrails-669758fb6183f7fc9b13a44143f6b07ef0fd230b.tar.gz
rails-669758fb6183f7fc9b13a44143f6b07ef0fd230b.tar.bz2
rails-669758fb6183f7fc9b13a44143f6b07ef0fd230b.zip
Remove redundant `assert_nothing_raised` before another assertions
These `assert_nothing_raised` are covered by following assertions.
Diffstat (limited to 'activerecord/test/cases/associations/eager_test.rb')
-rw-r--r--activerecord/test/cases/associations/eager_test.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/activerecord/test/cases/associations/eager_test.rb b/activerecord/test/cases/associations/eager_test.rb
index 4271a09c9b..55b294cfaa 100644
--- a/activerecord/test/cases/associations/eager_test.rb
+++ b/activerecord/test/cases/associations/eager_test.rb
@@ -271,9 +271,6 @@ class EagerAssociationTest < ActiveRecord::TestCase
end
def test_loading_from_an_association_that_has_a_hash_of_conditions
- assert_nothing_raised do
- Author.all.merge!(includes: :hello_posts_with_hash_conditions).to_a
- end
assert !Author.all.merge!(includes: :hello_posts_with_hash_conditions).find(authors(:david).id).hello_posts.empty?
end