spec/model_spec.rb in twitter_ebooks-3.1.5 vs spec/model_spec.rb in twitter_ebooks-3.1.6

- old
+ new

@@ -68,7 +68,21 @@ expect(model.mentions.count).to eq 0 expect(model.sentences.count).to eq 1 file.unlink end + + it 'handles strange unicode edge-cases' do + file = Tempfile.new('unicode') + file.write("šŸ’ž\nšŸ’ž") + file.close + + model = Ebooks::Model.consume(file.path) + expect(model.mentions.count).to eq 0 + expect(model.sentences.count).to eq 2 + + file.unlink + + p model.make_statement + end end end