From 5f14e971985410c7e21e3cfa25b7e4a34795dc84 Mon Sep 17 00:00:00 2001 From: Three Planets Software Date: Mon, 16 Dec 2024 10:48:53 -0500 Subject: [PATCH] Update tests to use UTF-8 instead of ASCII --- spec/base_classes/apple_note.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/base_classes/apple_note.rb b/spec/base_classes/apple_note.rb index ebf4bf5..0c3142c 100644 --- a/spec/base_classes/apple_note.rb +++ b/spec/base_classes/apple_note.rb @@ -130,8 +130,8 @@ it "properly decompresses the gzipped copy of modern notes" do tmp_note.decompress_data - expected_data = File.read(TEST_BLOB_DATA_DIR + "simple_note_protobuf.bin").force_encoding("US-ASCII") - expect(tmp_note.decompressed_data.force_encoding("US-ASCII")).to eql(expected_data) + expected_data = File.read(TEST_BLOB_DATA_DIR + "simple_note_protobuf.bin") + expect(tmp_note.decompressed_data.force_encoding("UTF-8")).to eql(expected_data) end it "properly extracts text from the protobuf of modern notes" do