Commit 8cee3b1d authored by Mike Greiling's avatar Mike Greiling

force utf-8 encoding for prior to fixture parsing to prevent nokogiri issues

parent ca404170
...@@ -26,6 +26,7 @@ module JavaScriptFixturesHelpers ...@@ -26,6 +26,7 @@ module JavaScriptFixturesHelpers
def store_frontend_fixture(response, fixture_file_name) def store_frontend_fixture(response, fixture_file_name)
fixture_file_name = File.expand_path(fixture_file_name, FIXTURE_PATH) fixture_file_name = File.expand_path(fixture_file_name, FIXTURE_PATH)
fixture = response.body fixture = response.body
fixture.force_encoding("utf-8")
response_mime_type = Mime::Type.lookup(response.content_type) response_mime_type = Mime::Type.lookup(response.content_type)
if response_mime_type.html? if response_mime_type.html?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment