diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/test_table.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_table.rb b/test/test_table.rb index 7d773b2e2b..65454d402b 100644 --- a/test/test_table.rb +++ b/test/test_table.rb @@ -7,6 +7,13 @@ module Arel end it 'should create join nodes' do + join = @relation.create_string_join 'foo', 'bar' + assert_kind_of Arel::Nodes::StringJoin, join + assert_equal 'foo', join.left + assert_equal 'bar', join.right + end + + it 'should create join nodes' do join = @relation.create_join 'foo', 'bar', 'baz' assert_kind_of Arel::Nodes::InnerJoin, join assert_equal 'foo', join.left |