aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-01-01 14:15:01 -0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-01-01 14:15:01 -0200
commitda0463cf5e93905978e5f9f8b64e75fc33a9c7af (patch)
treea8468edb3f58db55ce151718784134d9498b0991 /activerecord
parentb94e2dd82c3c69d923c59842b8703856a715230c (diff)
downloadrails-da0463cf5e93905978e5f9f8b64e75fc33a9c7af.tar.gz
rails-da0463cf5e93905978e5f9f8b64e75fc33a9c7af.tar.bz2
rails-da0463cf5e93905978e5f9f8b64e75fc33a9c7af.zip
Improve the tests to not call assert_nothing_raised
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/associations/cascaded_eager_loading_test.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/activerecord/test/cases/associations/cascaded_eager_loading_test.rb b/activerecord/test/cases/associations/cascaded_eager_loading_test.rb
index 904d85266e..71c0609df5 100644
--- a/activerecord/test/cases/associations/cascaded_eager_loading_test.rb
+++ b/activerecord/test/cases/associations/cascaded_eager_loading_test.rb
@@ -176,10 +176,7 @@ class CascadedEagerLoadingTest < ActiveRecord::TestCase
end
def test_eager_association_loading_with_cascaded_interdependent_one_level_and_two_levels
- authors_relation = Author.all.merge!(:includes => [:comments, {:posts => :categorizations}], :order => "authors.id")
- assert_nothing_raised do
- authors_relation.to_a
- end
+ authors_relation = Author.all.merge!(includes: [:comments, { posts: :categorizations }], order: "authors.id")
authors = authors_relation.to_a
assert_equal 3, authors.size
assert_equal 10, authors[0].comments.size