Some browsers automatically adds the charset to Content-Type. Be less restrictive in tests.

This commit is contained in:
José Valim 2011-01-01 03:43:30 -08:00
parent 8a2ce34691
commit c7de62d88a
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ end
shared_examples_for "driver with header support" do
it "should make headers available through response_headers" do
@driver.visit('/with_simple_html')
@driver.response_headers['Content-Type'].should == 'text/html'
@driver.response_headers['Content-Type'].should =~ /text\/html/
end
end