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:
parent
7e5628569f
commit
06a4e95eb1
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue