diff options
author | Stephen Prater & Fire-Dragon-DoL <francesco.belladonna@gmail.com> | 2013-07-31 01:08:22 +0200 |
---|---|---|
committer | Stephen Prater <me@stephenprater.com> | 2014-03-30 22:59:16 -0500 |
commit | 4cb02380116b102142f85d92b7923c11882f94c7 (patch) | |
tree | 3cfb5968941e8979ebdfe12c2884398b65f7c8b6 /test/test_table.rb | |
parent | dbe1f8b29a80bf07aa5df624f68b9de869c1f248 (diff) | |
download | rails-4cb02380116b102142f85d92b7923c11882f94c7.tar.gz rails-4cb02380116b102142f85d92b7923c11882f94c7.tar.bz2 rails-4cb02380116b102142f85d92b7923c11882f94c7.zip |
Added right and full outer joins
Diffstat (limited to 'test/test_table.rb')
-rw-r--r-- | test/test_table.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/test_table.rb b/test/test_table.rb index 431a919de1..b4c2a65fcd 100644 --- a/test/test_table.rb +++ b/test/test_table.rb @@ -20,12 +20,26 @@ module Arel end it 'should create join nodes with a klass' do + join = @relation.create_join 'foo', 'bar', Arel::Nodes::FullOuterJoin + assert_kind_of Arel::Nodes::FullOuterJoin, join + assert_equal 'foo', join.left + assert_equal 'bar', join.right + end + + it 'should create join nodes with a klass' do join = @relation.create_join 'foo', 'bar', Arel::Nodes::OuterJoin assert_kind_of Arel::Nodes::OuterJoin, join assert_equal 'foo', join.left assert_equal 'bar', join.right end + it 'should create join nodes with a klass' do + join = @relation.create_join 'foo', 'bar', Arel::Nodes::RightOuterJoin + assert_kind_of Arel::Nodes::RightOuterJoin, join + assert_equal 'foo', join.left + assert_equal 'bar', join.right + end + it 'should return an insert manager' do im = @relation.compile_insert 'VALUES(NULL)' assert_kind_of Arel::InsertManager, im |