Skip to content
This repository
Browse code

[#8743] Test case

- Reverting #a3cf03ef99 fixes the issue

Conflicts:
	activerecord/test/cases/relations_test.rb
  • Loading branch information...
commit 162e2859813b31c50700b453aa61992dfa57139e 1 parent 28fd867
FABIANSKI Cédric cfabianski authored rafaelfranca committed

Showing 1 changed file with 5 additions and 0 deletions. Show diff stats Hide diff stats

  1. +5 0 activerecord/test/cases/relations_test.rb
5 activerecord/test/cases/relations_test.rb
@@ -745,6 +745,11 @@ def test_relation_merging_with_association
745 745 end
746 746 end
747 747
  748 + def test_relation_to_sql
  749 + sql = Post.first.comments.to_sql
  750 + assert_no_match(/\?/, sql)
  751 + end
  752 +
748 753 def test_count
749 754 posts = Post.all
750 755

0 comments on commit 162e285

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