diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-10 09:16:41 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-10 09:16:41 -0800 |
commit | 2d320e366a586fa9869080950e4c27f4aad55a5a (patch) | |
tree | 4a9832e7014f13a41a00d201ac48b3407df01447 /test | |
parent | a84c34fa08596c563226f3df216e3adf8868f112 (diff) | |
download | rails-2d320e366a586fa9869080950e4c27f4aad55a5a.tar.gz rails-2d320e366a586fa9869080950e4c27f4aad55a5a.tar.bz2 rails-2d320e366a586fa9869080950e4c27f4aad55a5a.zip |
testing nary nodes in the depth first visitor
Diffstat (limited to 'test')
-rw-r--r-- | test/visitors/test_depth_first.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/visitors/test_depth_first.rb b/test/visitors/test_depth_first.rb index 1f1c7ab361..7d7324f627 100644 --- a/test/visitors/test_depth_first.rb +++ b/test/visitors/test_depth_first.rb @@ -110,9 +110,9 @@ module Arel Arel::Nodes::And, ].each do |klass| define_method("test_#{klass.name.gsub('::', '_')}") do - binary = klass.new([:a, :b]) + binary = klass.new([:a, :b, :c]) @visitor.accept binary - assert_equal [:a, :b, binary], @collector.calls + assert_equal [:a, :b, :c, binary], @collector.calls end end |