Being more specific about encoding
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user