1
0
Fork 0
mirror of https://github.com/thoughtbot/capybara-webkit synced 2023-03-27 23:22:28 -04:00

tests for unsupported content headers

This commit is contained in:
Stephen Delano 2011-10-12 20:26:50 -07:00
parent 7e5628569f
commit 06a4e95eb1

View file

@ -140,12 +140,16 @@ describe Capybara::Driver::Webkit do
@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