Permalink
Browse files

Improve the tests to not call assert_nothing_raised

  • Loading branch information...
1 parent b94e2dd commit da0463cf5e93905978e5f9f8b64e75fc33a9c7af @rafaelfranca rafaelfranca committed Jan 1, 2014
Showing with 1 addition and 4 deletions.
  1. +1 −4 activerecord/test/cases/associations/cascaded_eager_loading_test.rb
@@ -176,10 +176,7 @@ def test_eager_association_loading_with_recursive_cascading_four_levels_has_and_
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

0 comments on commit da0463c

Please sign in to comment.