Skip to content

Commit 5f14e97

Browse files
Update tests to use UTF-8 instead of ASCII
1 parent 8fa0067 commit 5f14e97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/base_classes/apple_note.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@
130130

131131
it "properly decompresses the gzipped copy of modern notes" do
132132
tmp_note.decompress_data
133-
expected_data = File.read(TEST_BLOB_DATA_DIR + "simple_note_protobuf.bin").force_encoding("US-ASCII")
134-
expect(tmp_note.decompressed_data.force_encoding("US-ASCII")).to eql(expected_data)
133+
expected_data = File.read(TEST_BLOB_DATA_DIR + "simple_note_protobuf.bin")
134+
expect(tmp_note.decompressed_data.force_encoding("UTF-8")).to eql(expected_data)
135135
end
136136

137137
it "properly extracts text from the protobuf of modern notes" do

0 commit comments

Comments
 (0)