From 93d72131bcc24ccb5536bec672d2dac94f8de651 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 24 Mar 2014 16:26:09 -0700 Subject: add the casting node to the AST at build time If we add the casting node to the ast at build time, then we can avoid doing the lookup at visit time. --- test/nodes/test_grouping.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/nodes/test_grouping.rb') diff --git a/test/nodes/test_grouping.rb b/test/nodes/test_grouping.rb index b7aa51d37f..febf0bee40 100644 --- a/test/nodes/test_grouping.rb +++ b/test/nodes/test_grouping.rb @@ -4,7 +4,7 @@ module Arel module Nodes describe 'Grouping' do it 'should create Equality nodes' do - grouping = Grouping.new('foo') + grouping = Grouping.new(Nodes.build_quoted('foo')) grouping.eq('foo').to_sql.must_be_like %q{('foo') = 'foo'} end -- cgit v1.2.3