aboutsummaryrefslogtreecommitdiffstats
path: root/spec/table_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/table_spec.rb')
-rw-r--r--spec/table_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/table_spec.rb b/spec/table_spec.rb
index 15f2e024e0..d0ba46ae56 100644
--- a/spec/table_spec.rb
+++ b/spec/table_spec.rb
@@ -12,6 +12,13 @@ module Arel
end
end
+ describe 'select_manager' do
+ it 'should return an empty select manager' do
+ sm = @relation.select_manager
+ sm.to_sql.should be_like 'SELECT'
+ end
+ end
+
describe 'having' do
it 'adds a having clause' do
mgr = @relation.having @relation[:id].eq(10)