test/prawn/emoji/drawer_test.rb in prawn-emoji-2.0.0 vs test/prawn/emoji/drawer_test.rb in prawn-emoji-2.0.1

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + require 'test_helper' describe Prawn::Emoji::Drawer do let(:document) { Prawn::Document.new } let(:drawer) { Prawn::Emoji::Drawer.new document: document } @@ -13,10 +15,10 @@ describe '#draw' do subject { drawer.draw(text, {}) } describe 'when text encoding is not utf-8' do - let(:text) { "\xe8\x8a\xb1".force_encoding('ascii-8bit') } + let(:text) { 'a'.encode('ascii-8bit') } it 'skip' do mock(drawer).draw_emoji(text, {}).never subject end