diff options
Diffstat (limited to 'spec/select_manager_spec.rb')
-rw-r--r-- | spec/select_manager_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/select_manager_spec.rb b/spec/select_manager_spec.rb index e5b65b4698..287657d0c1 100644 --- a/spec/select_manager_spec.rb +++ b/spec/select_manager_spec.rb @@ -299,6 +299,11 @@ module Arel manager.join_sql.should be_like %{ 'hello' } check manager.joins(manager).should == manager.join_sql end + + it 'returns nil join sql' do + manager = Arel::SelectManager.new Table.engine + manager.join_sql.should be_nil + end end describe 'order_clauses' do |