aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-11-29 15:31:28 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2010-11-29 15:31:28 -0800
commitf68b7c4e7e25415c41308a5c37f1096a524b6d09 (patch)
treefb713329b508de307c9708f440b780bf3ae48a12 /test
parentae4c814f537416345332b07bcaeaa199b75aa706 (diff)
downloadrails-f68b7c4e7e25415c41308a5c37f1096a524b6d09.tar.gz
rails-f68b7c4e7e25415c41308a5c37f1096a524b6d09.tar.bz2
rails-f68b7c4e7e25415c41308a5c37f1096a524b6d09.zip
base class works with visitor
Diffstat (limited to 'test')
-rw-r--r--test/visitors/test_depth_first.rb6
1 files changed, 6 insertions, 0 deletions
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