diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-04-09 12:02:43 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-04-09 12:02:43 -0700 |
commit | 1794ac0197501c8d416c37769f2b5683d297ce6f (patch) | |
tree | 341f2654c656583652ad2ae400e17a4ee6e62fe9 /activerecord/test | |
parent | a14f746bf0aac3f5e21b8d5b5d9672ba0d1dd979 (diff) | |
download | rails-1794ac0197501c8d416c37769f2b5683d297ce6f.tar.gz rails-1794ac0197501c8d416c37769f2b5683d297ce6f.tar.bz2 rails-1794ac0197501c8d416c37769f2b5683d297ce6f.zip |
remove the bind substitution visitor. to_sql should never return bind values
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/relation/merging_test.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/activerecord/test/cases/relation/merging_test.rb b/activerecord/test/cases/relation/merging_test.rb index f7cd6d75b5..ff1c2a0d82 100644 --- a/activerecord/test/cases/relation/merging_test.rb +++ b/activerecord/test/cases/relation/merging_test.rb @@ -17,9 +17,7 @@ class RelationMergingTest < ActiveRecord::TestCase end def test_relation_to_sql - sql = Post.connection.unprepared_statement do - Post.first.comments.to_sql - end + sql = Post.first.comments.to_sql assert_no_match(/\?/, sql) end |