diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-07 14:59:13 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-07 14:59:13 -0800 |
commit | 79657a3512335d5de77fd7d1443cad3b00e2816b (patch) | |
tree | 6eca7495a55c3f2c8969d0a6c04385d9408cf1f4 /test | |
parent | 9a5b5e533600de7421700fd8f1498bfa0ce42a9c (diff) | |
download | rails-79657a3512335d5de77fd7d1443cad3b00e2816b.tar.gz rails-79657a3512335d5de77fd7d1443cad3b00e2816b.tar.bz2 rails-79657a3512335d5de77fd7d1443cad3b00e2816b.zip |
creating string join nodes
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 |