diff --git a/lib/capybara/spec/driver.rb b/lib/capybara/spec/driver.rb index 9bd3582a..724e9c74 100644 --- a/lib/capybara/spec/driver.rb +++ b/lib/capybara/spec/driver.rb @@ -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