aboutsummaryrefslogtreecommitdiffstats
path: root/test/visitors/test_depth_first.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/visitors/test_depth_first.rb')
-rw-r--r--test/visitors/test_depth_first.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/visitors/test_depth_first.rb b/test/visitors/test_depth_first.rb
index 306605b7c6..6d74926743 100644
--- a/test/visitors/test_depth_first.rb
+++ b/test/visitors/test_depth_first.rb
@@ -52,10 +52,16 @@ module Arel
define_method("test_#{klass.name.gsub('::', '_')}") do
func = klass.new(:a, :b)
@visitor.accept func
- assert_equal [:a, :b, func], @collector.calls
+ assert_equal [:a, :b, false, func], @collector.calls
end
end
+ def test_named_function
+ func = Arel::Nodes::NamedFunction.new(:a, :b, :c)
+ @visitor.accept func
+ assert_equal [:a, :b, false, :c, func], @collector.calls
+ end
+
def test_lock
lock = Nodes::Lock.new
@visitor.accept lock