diff options
Diffstat (limited to 'spec/arel/select_manager_spec.rb')
-rw-r--r-- | spec/arel/select_manager_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/arel/select_manager_spec.rb b/spec/arel/select_manager_spec.rb index 883a518aca..5e4059084f 100644 --- a/spec/arel/select_manager_spec.rb +++ b/spec/arel/select_manager_spec.rb @@ -26,6 +26,15 @@ module Arel end describe 'select manager' do + describe 'taken' do + it 'should return limit' do + table = Table.new :users + manager = Arel::SelectManager.new Table.engine + manager.take 10 + check manager.taken.should == 10 + end + end + describe 'insert' do it 'uses the select FROM' do engine = EngineProxy.new Table.engine |