diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-01-03 11:12:46 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-01-03 11:12:46 -0800 |
commit | 957f4c02ddccd243b965e60351bc0a0083e4887d (patch) | |
tree | bacb3fa945a16b4b7f3d803fb3c275bb65cf2897 /test | |
parent | 824726be706a288f7b67160e1b2f021c10ec7668 (diff) | |
download | rails-957f4c02ddccd243b965e60351bc0a0083e4887d.tar.gz rails-957f4c02ddccd243b965e60351bc0a0083e4887d.tar.bz2 rails-957f4c02ddccd243b965e60351bc0a0083e4887d.zip |
top and limit can be visited
Diffstat (limited to 'test')
-rw-r--r-- | test/visitors/test_depth_first.rb | 2 | ||||
-rw-r--r-- | test/visitors/test_dot.rb | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/test/visitors/test_depth_first.rb b/test/visitors/test_depth_first.rb index 4bce468183..306605b7c6 100644 --- a/test/visitors/test_depth_first.rb +++ b/test/visitors/test_depth_first.rb @@ -31,6 +31,8 @@ module Arel Arel::Nodes::Having, Arel::Nodes::StringJoin, Arel::Nodes::UnqualifiedColumn, + Arel::Nodes::Top, + Arel::Nodes::Limit, ].each do |klass| define_method("test_#{klass.name.gsub('::', '_')}") do op = klass.new(:a) diff --git a/test/visitors/test_dot.rb b/test/visitors/test_dot.rb index de6dd87c4c..3c7da8958a 100644 --- a/test/visitors/test_dot.rb +++ b/test/visitors/test_dot.rb @@ -16,6 +16,8 @@ module Arel Arel::Nodes::Offset, Arel::Nodes::Having, Arel::Nodes::UnqualifiedColumn, + Arel::Nodes::Top, + Arel::Nodes::Limit, ].each do |klass| define_method("test_#{klass.name.gsub('::', '_')}") do op = klass.new(:a) |