Skip to content
Browse files

Merge pull request #11307 from jetthoughts/cleanup_assert_sql

Cleanup belongs to tests
  • Loading branch information...
2 parents cb0dacf + 1894682 commit 37aaaa7e70e7e4b1ebd3567ec6d026384350bd1e @carlosantoniodasilva carlosantoniodasilva committed
Showing with 1 addition and 2 deletions.
  1. +1 −2 activerecord/test/cases/associations/belongs_to_associations_test.rb
View
3 activerecord/test/cases/associations/belongs_to_associations_test.rb
@@ -391,8 +391,7 @@ def test_polymorphic_setting_foreign_key_after_nil_target_loaded
def test_dont_find_target_when_foreign_key_is_null
tagging = taggings(:thinking_general)
- queries = assert_sql { tagging.super_tag }
- assert_equal 0, queries.length
+ assert_queries(0) { tagging.super_tag }
end
def test_field_name_same_as_foreign_key

0 comments on commit 37aaaa7

Please sign in to comment.
Something went wrong with that request. Please try again.