Sha256: ebed0434161a5e24222801b25b17de758aea0a90688c14a3aa182949fa359d43
Contents?: true
Size: 506 Bytes
Versions: 17
Compression:
Stored size: 506 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe ThinkingSphinx::RealTime::Translator do let(:subject) { ThinkingSphinx::RealTime::Translator.call object, column } let(:object) { double } let(:column) { double :__stack => [], :__name => :title } it "converts non-UTF-8 strings to UTF-8" do allow(object).to receive(:title). and_return "hello".dup.force_encoding("ASCII-8BIT") expect(subject).to eq("hello") expect(subject.encoding.name).to eq("UTF-8") end end
Version data entries
17 entries across 17 versions & 1 rubygems