From 33f03c5557526d54c2b0053c79ea0e837016aef5 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 20 Feb 2012 17:57:37 -0800 Subject: bind parameters can be differentiated from sql literals --- test/visitors/test_to_sql.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/visitors') diff --git a/test/visitors/test_to_sql.rb b/test/visitors/test_to_sql.rb index 9b86a89300..f832bdf925 100644 --- a/test/visitors/test_to_sql.rb +++ b/test/visitors/test_to_sql.rb @@ -9,6 +9,12 @@ module Arel @attr = @table[:id] end + it 'works with BindParams' do + node = Nodes::BindParam.new 'omg' + sql = @visitor.accept node + sql.must_be_like 'omg' + end + it 'can define a dispatch method' do visited = false viz = Class.new(Arel::Visitors::Visitor) { -- cgit v1.2.3