aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-12-10 09:16:41 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2010-12-10 09:16:41 -0800
commit2d320e366a586fa9869080950e4c27f4aad55a5a (patch)
tree4a9832e7014f13a41a00d201ac48b3407df01447 /test
parenta84c34fa08596c563226f3df216e3adf8868f112 (diff)
downloadrails-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.rb4
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