From c50b40674664e0e5b971931536482ffbac47a1cf Mon Sep 17 00:00:00 2001 From: Benedikt Deicke Date: Thu, 22 Mar 2012 17:09:32 +0100 Subject: Adds visit_Arel_Nodes_InfixOperation to Arel::Visitors::DepthFirst --- 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 9c01fb8fcc..05360ff6e8 100644 --- a/test/visitors/test_depth_first.rb +++ b/test/visitors/test_depth_first.rb @@ -114,6 +114,12 @@ module Arel end end + def test_Arel_Nodes_InfixOperation + binary = Arel::Nodes::InfixOperation.new(:o, :a, :b) + @visitor.accept binary + assert_equal [:a, :b, binary], @collector.calls + end + # N-ary [ Arel::Nodes::And, -- cgit v1.2.3