From f68b7c4e7e25415c41308a5c37f1096a524b6d09 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 29 Nov 2010 15:31:28 -0800 Subject: base class works with visitor --- test/visitors/test_depth_first.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') diff --git a/test/visitors/test_depth_first.rb b/test/visitors/test_depth_first.rb index 2f7c832bde..4015d72254 100644 --- a/test/visitors/test_depth_first.rb +++ b/test/visitors/test_depth_first.rb @@ -192,6 +192,12 @@ module Arel @visitor.accept stmt assert_equal [:a, :b, stmt.columns, :c, stmt], @collector.calls end + + def test_node + node = Nodes::Node.new + @visitor.accept node + assert_equal [node], @collector.calls + end end end end -- cgit v1.2.3