From 9fb1f8d1827baa8ca7a5315965ec3a612d8165d8 Mon Sep 17 00:00:00 2001 From: Marnen Laibow-Koser Date: Thu, 28 May 2009 21:46:28 -0400 Subject: [PATCH] Get content-type specs working again. [#24] --- spec/controllers/events_controller_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/controllers/events_controller_spec.rb b/spec/controllers/events_controller_spec.rb index 9c99b5e1..6c1ed136 100644 --- a/spec/controllers/events_controller_spec.rb +++ b/spec/controllers/events_controller_spec.rb @@ -89,7 +89,7 @@ end it "should set a MIME type of application/rss+xml" do - response.headers['type'].should =~ (%r{^application/rss\+xml}) + response.content_type.should =~ (%r{^application/rss\+xml}) end it "should set RSS version 2.0 and declare the Atom namespace" do @@ -176,7 +176,7 @@ it "should return the appropriate MIME type for a PDF file" do get :index, :format => 'pdf' - response.headers['type'].should =~ %r{^application/pdf} + response.content_type.should =~ %r{^application/pdf} end it "should set assigns[:users]" do @@ -485,7 +485,7 @@ it "should set a MIME type of text/calendar" do get :export, :id => @my_event.id - response.headers['type'].should =~ (%r{^text/calendar}) + response.content_type.should =~ (%r{^text/calendar}) end end