diff options
author | Louise Crow <louise.crow@gmail.com> | 2012-09-13 10:30:20 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2012-09-13 10:30:20 +0100 |
commit | a622b31a33658696525ad675cdeb1e433f2a7c8b (patch) | |
tree | 3ecded4ccfc0263b26d01558b0836e561b075713 /spec/models/info_request_spec.rb | |
parent | 65b1d387a135ff027d2dfc2972ad97d2b3d85288 (diff) | |
parent | 9c635e7908f33f80a93d140dc54061d63a75ceba (diff) |
Merge branch 'feature/faster-admin-old-unclassified' into develop
Diffstat (limited to 'spec/models/info_request_spec.rb')
-rw-r--r-- | spec/models/info_request_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/models/info_request_spec.rb b/spec/models/info_request_spec.rb index 76be32e0c..204c600d9 100644 --- a/spec/models/info_request_spec.rb +++ b/spec/models/info_request_spec.rb @@ -341,6 +341,14 @@ describe InfoRequest do InfoRequest.find_old_unclassified(:limit => 5) end + it 'should ask for requests using any offset param supplied' do + InfoRequest.should_receive(:find).with(:all, {:select => anything, + :order => anything, + :conditions=> anything, + :offset => 100}) + InfoRequest.find_old_unclassified(:offset => 100) + end + it 'should not limit the number of requests returned by default' do InfoRequest.should_not_receive(:find).with(:all, {:select => anything, :order => anything, |