From ad16c18cc3a7db4b56611b9244140f0b495a1214 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 29 Nov 2010 14:30:06 -0800 Subject: insert statements supported --- test/visitors/test_depth_first.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test') diff --git a/test/visitors/test_depth_first.rb b/test/visitors/test_depth_first.rb index 04c5096f5b..32778f7d4b 100644 --- a/test/visitors/test_depth_first.rb +++ b/test/visitors/test_depth_first.rb @@ -120,6 +120,16 @@ module Arel :e, ss], @collector.calls end + + def test_insert_statement + stmt = Nodes::InsertStatement.new + stmt.relation = :a + stmt.columns << :b + stmt.values = :c + + @visitor.accept stmt + assert_equal [:a, :b, stmt.columns, :c, stmt], @collector.calls + end end end end -- cgit v1.2.3