aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2014-04-09 12:02:43 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2014-04-09 12:02:43 -0700
commit1794ac0197501c8d416c37769f2b5683d297ce6f (patch)
tree341f2654c656583652ad2ae400e17a4ee6e62fe9 /activerecord/test/cases
parenta14f746bf0aac3f5e21b8d5b5d9672ba0d1dd979 (diff)
downloadrails-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/cases')
-rw-r--r--activerecord/test/cases/relation/merging_test.rb4
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