aboutsummaryrefslogtreecommitdiffstats
path: root/test/visitors/test_depth_first.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2014-04-08 16:20:48 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2014-04-08 16:20:48 -0700
commitc8140beae74bd63f2c1edd31d6e7ce9bcd31169d (patch)
treed1d5aed6ab16adada7807bd34964f31464c01931 /test/visitors/test_depth_first.rb
parent4e2e1cc63a81bf549712c4cacfe1f3dc32e632a2 (diff)
parent55c0071ce3685a78b4f039be24b2ab40b8779467 (diff)
downloadrails-c8140beae74bd63f2c1edd31d6e7ce9bcd31169d.tar.gz
rails-c8140beae74bd63f2c1edd31d6e7ce9bcd31169d.tar.bz2
rails-c8140beae74bd63f2c1edd31d6e7ce9bcd31169d.zip
Merge branch 'master' into collector
* master: remove order_clauses since we do not use it fix whitespace and unsupported method args Add Regexp and NotRegexp nodes for PostgreSQL Revert "Merge pull request #253 from corrupt952/master" flatten object.children in visit_Arel_Node_And Added right and full outer joins Conflicts: lib/arel/visitors/to_sql.rb lib/arel/visitors/visitor.rb
Diffstat (limited to 'test/visitors/test_depth_first.rb')
-rw-r--r--test/visitors/test_depth_first.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/visitors/test_depth_first.rb b/test/visitors/test_depth_first.rb
index cbaa780dae..baa8f64184 100644
--- a/test/visitors/test_depth_first.rb
+++ b/test/visitors/test_depth_first.rb
@@ -81,12 +81,24 @@ module Arel
assert_equal [:a, :b, join], @collector.calls
end
+ def test_full_outer_join
+ join = Nodes::FullOuterJoin.new :a, :b
+ @visitor.accept join
+ assert_equal [:a, :b, join], @collector.calls
+ end
+
def test_outer_join
join = Nodes::OuterJoin.new :a, :b
@visitor.accept join
assert_equal [:a, :b, join], @collector.calls
end
+ def test_right_outer_join
+ join = Nodes::RightOuterJoin.new :a, :b
+ @visitor.accept join
+ assert_equal [:a, :b, join], @collector.calls
+ end
+
[
Arel::Nodes::Assignment,
Arel::Nodes::Between,