diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-06-15 14:38:19 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-06-15 14:38:19 -0300 |
commit | f50de54a6f0c59ab75526cfdb7896830130ffdf7 (patch) | |
tree | 73d64ff4266dc222a7fe1777ee0f06f126514941 /test | |
parent | cd0d1492d3d788f662e93c4cba561343a86a3181 (diff) | |
parent | fcd11dcb99d69d40ff60b56bcd7330264128ecfd (diff) | |
download | rails-f50de54a6f0c59ab75526cfdb7896830130ffdf7.tar.gz rails-f50de54a6f0c59ab75526cfdb7896830130ffdf7.tar.bz2 rails-f50de54a6f0c59ab75526cfdb7896830130ffdf7.zip |
Merge pull request #292 from mekishizufu/dot_visitor_api
Modify Visitors::Dot's API to use collectors
Diffstat (limited to 'test')
-rw-r--r-- | test/visitors/test_dot.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/visitors/test_dot.rb b/test/visitors/test_dot.rb index ee7fc7886c..7763350f5c 100644 --- a/test/visitors/test_dot.rb +++ b/test/visitors/test_dot.rb @@ -17,13 +17,13 @@ module Arel ].each do |klass| define_method("test_#{klass.name.gsub('::', '_')}") do op = klass.new(:a, "z") - @visitor.accept op + @visitor.accept op, Collectors::PlainString.new end end def test_named_function func = Nodes::NamedFunction.new 'omg', 'omg' - @visitor.accept func + @visitor.accept func, Collectors::PlainString.new end # unary ops @@ -41,7 +41,7 @@ module Arel ].each do |klass| define_method("test_#{klass.name.gsub('::', '_')}") do op = klass.new(:a) - @visitor.accept op + @visitor.accept op, Collectors::PlainString.new end end @@ -68,7 +68,7 @@ module Arel ].each do |klass| define_method("test_#{klass.name.gsub('::', '_')}") do binary = klass.new(:a, :b) - @visitor.accept binary + @visitor.accept binary, Collectors::PlainString.new end end end |