aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/general_controller_spec.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-06-20 15:20:49 -0700
committerLouise Crow <louise.crow@gmail.com>2013-06-20 15:21:30 -0700
commitc1b3324922687778b316ee1a180582013bcf6d0e (patch)
tree75a99470b8f444e7caac3752c1febc0f4e3853b2 /spec/controllers/general_controller_spec.rb
parente2fe79fa339a55e02a47ffe6f7e41d498ceb6cb8 (diff)
Assume that format will be specified in the url requested, or default to HTML. Fixes #989.
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 bce12248b..083197d24 100644
--- a/spec/controllers/general_controller_spec.rb
+++ b/spec/controllers/general_controller_spec.rb
@@ -347,4 +347,10 @@ describe GeneralController, 'when using xapian search' do
response.body.should include('Track this search')
end
+ it 'should ignore an odd ACCEPTS header' do
+ request.env['HTTP_ACCEPT'] = '*/*;q=0.01'
+ get :search, :combined => '"fancy dog"'
+ response.should be_success
+ end
+
end