Fix #21
Default serializer changed from YAML to Marshal (to avoid UTF-8 errors on BackTrack) Spec for UTF-8 updated
This commit is contained in:
@@ -300,13 +300,13 @@ describe Browser do
|
||||
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
|
||||
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)
|
||||
expect { response1.body }.to_not raise_error
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user