diff options
author | Benedikt Deicke <benedikt@synatic.net> | 2012-03-22 17:09:32 +0100 |
---|---|---|
committer | Benedikt Deicke <benedikt@synatic.net> | 2012-03-22 17:09:32 +0100 |
commit | c50b40674664e0e5b971931536482ffbac47a1cf (patch) | |
tree | e1cc2a19420d89c70e8c1c09c2947b367efe45f2 /test | |
parent | 660768f57cc1fd6e66a1f675b774f782e431cf13 (diff) | |
download | rails-c50b40674664e0e5b971931536482ffbac47a1cf.tar.gz rails-c50b40674664e0e5b971931536482ffbac47a1cf.tar.bz2 rails-c50b40674664e0e5b971931536482ffbac47a1cf.zip |
Adds visit_Arel_Nodes_InfixOperation to Arel::Visitors::DepthFirst
Diffstat (limited to 'test')
-rw-r--r-- | test/visitors/test_depth_first.rb | 6 |
1 files changed, 6 insertions, 0 deletions
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, |