Skip to content
Snippets Groups Projects
Commit 8cee3b1d authored by Mike Greiling's avatar Mike Greiling
Browse files

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

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