Added tests for UTF8 encoding

This commit is contained in:
Christian Mehlmauer
2012-09-10 21:33:58 +02:00
parent 91cfa5a060
commit 3d149028b6
2 changed files with 780 additions and 1 deletions

View File

@@ -300,5 +300,13 @@ describe Browser do
end
end
end
describe "testing UTF8" do
it "should not throw an encoding exception" do
url = SPEC_FIXTURES_DIR + "/utf8.html"
stub_request(:get, url).to_return(:status => 200, :body => File.read(url))
response1 = @browser.get(url)
response1.body
end
end
end