Some browsers automatically adds the charset to Content-Type. Be less restrictive in tests.
This commit is contained in:
parent
8a2ce34691
commit
c7de62d88a
|
@ -118,7 +118,7 @@ end
|
||||||
shared_examples_for "driver with header support" do
|
shared_examples_for "driver with header support" do
|
||||||
it "should make headers available through response_headers" do
|
it "should make headers available through response_headers" do
|
||||||
@driver.visit('/with_simple_html')
|
@driver.visit('/with_simple_html')
|
||||||
@driver.response_headers['Content-Type'].should == 'text/html'
|
@driver.response_headers['Content-Type'].should =~ /text\/html/
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue