Merge branch 'master' of https://github.com/asceth/capybara into asceth-master

This commit is contained in:
Jonas Nicklas 2011-02-02 17:55:36 +01:00
commit bbcfd02eb7
2 changed files with 15 additions and 0 deletions

View File

@ -26,6 +26,20 @@ shared_examples_for 'driver' do
@driver.visit('/with_simple_html')
@driver.body.should include('Bar')
end
if "".respond_to?(:encoding)
context "encoding of response between ascii and utf8" do
it "should be valid with html entities" do
@driver.visit('/with_html_entities')
lambda { @driver.body.encode!("UTF-8") }.should_not raise_error
end
it "should be valid without html entities" do
@driver.visit('/with_html')
lambda { @driver.body.encode!("UTF-8") }.should_not raise_error
end
end
end
end
describe '#find' do

View File

@ -0,0 +1 @@
Encoding with — html entities »