aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/track_controller_spec.rb
diff options
context:
space:
mode:
authorMark Longair <mhl@pobox.com>2013-05-29 15:25:02 +0100
committerMark Longair <mhl@pobox.com>2013-05-29 15:25:02 +0100
commit2376834e80b736e4eb4f4dcbdbb3988cafa6cc5b (patch)
tree41c17ed853a1c83e3ac6bc6813dd3e4c991b3b9e /spec/controllers/track_controller_spec.rb
parentedbce1f569c997b8d5c10cdf95e301e0a15e9393 (diff)
Make sure Atom feeds are served with content type application/atom+xml
Fixes #961
Diffstat (limited to 'spec/controllers/track_controller_spec.rb')
-rw-r--r--spec/controllers/track_controller_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/controllers/track_controller_spec.rb b/spec/controllers/track_controller_spec.rb
index e9501b1ed..5a766b1e1 100644
--- a/spec/controllers/track_controller_spec.rb
+++ b/spec/controllers/track_controller_spec.rb
@@ -144,6 +144,7 @@ describe TrackController, "when viewing RSS feed for a track" do
get :track_request, :feed => 'feed', :url_title => track_thing.info_request.url_title
response.should render_template('track/atom_feed')
+ response.content_type.should == 'application/atom+xml'
# XXX should check it is an atom.builder type being rendered, not sure how to
assigns[:xapian_object].matches_estimated.should == 3