Skip to content

Commit

Permalink
Get content-type specs working again. [#24]
Browse files Browse the repository at this point in the history
  • Loading branch information
marnen committed May 29, 2009
1 parent 63f2ecc commit 9fb1f8d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/controllers/events_controller_spec.rb
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 9fb1f8d

Please sign in to comment.