Being more specific about encoding

This commit is contained in:
Andy Meneely
2014-11-20 03:20:23 -05:00
parent 996fab90bd
commit 9e45726bdf
2 changed files with 4 additions and 5 deletions
+2 -3
View File
@@ -63,9 +63,8 @@ describe "Squib samples" do
log = StringIO.new
mock_cairo(log)
load sample
overwrite_sample(sample, log) # Use TEMPORARILY once happy with the new sample log
test_file_str = File.open(sample_regression_file(sample))
.read.force_encoding("UTF-8").encode("UTF-8")
# overwrite_sample(sample, log) # Use TEMPORARILY once happy with the new sample log
test_file_str = File.open(sample_regression_file(sample), 'r:UTF-8').read
expect(log.string).to eq(test_file_str)
end
end