diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/visitors/test_depth_first.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/visitors/test_depth_first.rb b/test/visitors/test_depth_first.rb index fd91dd5fb9..a318583e26 100644 --- a/test/visitors/test_depth_first.rb +++ b/test/visitors/test_depth_first.rb @@ -84,6 +84,24 @@ module Arel assert_equal [:a, :b, stmt.values, :c, stmt.wheres, :d, stmt.orders, :e, stmt], @collector.calls end + + def test_select_core + core = Nodes::SelectCore.new + core.projections << :a + core.froms = :b + core.wheres << :c + core.groups << :d + core.having = :e + + @visitor.accept core + assert_equal [ + :a, core.projections, + :b, + :c, core.wheres, + :d, core.groups, + :e, + core], @collector.calls + end end end end |