Skip to content

Commit

Permalink
tests for unsupported content headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Delano committed Oct 13, 2011
1 parent 7e56285 commit 06a4e95
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/driver_spec.rb
Expand Up @@ -140,12 +140,16 @@
@app = lambda do |env|
[200, {"Content-Type" => "text/css", "Content-Length" => body.length.to_s}, [body]]
end
subject.visit("/")
end

it "renders unsupported content types gracefully" do
subject.visit("/")
subject.body.should =~ /css/
end

it "sets the response headers with respect to the unsupported request" do
subject.response_headers["Content-Type"].should == "text/css"
end
end

context "hello app" do
Expand Down

0 comments on commit 06a4e95

Please sign in to comment.