Skip to content

Commit

Permalink
Update tests to use UTF-8 instead of ASCII
Browse files Browse the repository at this point in the history
  • Loading branch information
threeplanetssoftware committed Dec 16, 2024
1 parent 8fa0067 commit 5f14e97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/base_classes/apple_note.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5f14e97

Please sign in to comment.