aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/info_request_spec.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2012-09-20 13:38:04 +0100
committerLouise Crow <louise.crow@gmail.com>2012-09-20 13:38:04 +0100
commite32c63be6acd27534fb248e74e6394bf4fd8f28e (patch)
treebaa2a51740fed2798d798836144458444d4fc82e /spec/models/info_request_spec.rb
parent6d3d9d9846fa905e606f0a2aa6f1ec32122f4850 (diff)
parent44d64c22bbd49722688a680ce89bff3d1d3a8bdb (diff)
Merge branch 'release/0.6.6' into wdtk
Diffstat (limited to 'spec/models/info_request_spec.rb')
-rw-r--r--spec/models/info_request_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/models/info_request_spec.rb b/spec/models/info_request_spec.rb
index e931624c1..f5c92e5f6 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,