aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/general_controller_spec.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2015-02-05 10:40:54 +0000
committerLouise Crow <louise.crow@gmail.com>2015-02-05 10:40:54 +0000
commite82f7620c31a3486f78a21e7b395cc3f45e920d0 (patch)
treec0f48755c7287985cd1e654675fdb0c12556abf0 /spec/controllers/general_controller_spec.rb
parentac907d79128f39c411c22f254fcad0de5c00e8c7 (diff)
parentbac98e595afe6304bcd1f1f06e3472de33687182 (diff)
Merge branch 'hotfix/0.20.0.7'0.20.0.7
Conflicts: config/initializers/alaveteli.rb
Diffstat (limited to 'spec/controllers/general_controller_spec.rb')
-rw-r--r--spec/controllers/general_controller_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/controllers/general_controller_spec.rb b/spec/controllers/general_controller_spec.rb
index cb00b301c..8652d9b17 100644
--- a/spec/controllers/general_controller_spec.rb
+++ b/spec/controllers/general_controller_spec.rb
@@ -262,4 +262,10 @@ describe GeneralController, 'when using xapian search' do
response.body.should include('Track this search')
end
+ it 'should not show high page offsets as these are extremely slow to generate' do
+ lambda {
+ get :search, :combined => 'bob/all', :page => 25
+ }.should raise_error(ActiveRecord::RecordNotFound)
+ end
+
end