From 4b91cbc688b2fdc09a4a67a018c6bcb773934ea1 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 29 Nov 2010 14:26:53 -0800 Subject: adding select statement support --- test/visitors/test_depth_first.rb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'test') diff --git a/test/visitors/test_depth_first.rb b/test/visitors/test_depth_first.rb index a318583e26..04c5096f5b 100644 --- a/test/visitors/test_depth_first.rb +++ b/test/visitors/test_depth_first.rb @@ -102,6 +102,24 @@ module Arel :e, core], @collector.calls end + + def test_select_statement + ss = Nodes::SelectStatement.new + ss.cores.replace [:a] + ss.orders << :b + ss.limit = :c + ss.lock = :d + ss.offset = :e + + @visitor.accept ss + assert_equal [ + :a, ss.cores, + :b, ss.orders, + :c, + :d, + :e, + ss], @collector.calls + end end end end -- cgit v1.2.3