Sha256: f8f7cc7fc7f788e694bd5d117c79bbed0d0e3e3e7fdd82f6622bb8a1437aa4d7

Contents?: true

Size: 386 Bytes

Versions: 7

Compression:

Stored size: 386 Bytes

Contents

# encoding: utf-8
require File.expand_path("../spec_helper", File.dirname(__FILE__))

describe "unicode characters" do
  before :each do
    Sunspot.remove_all

    @post = Post.new(:title => "Híghgrøøvé")
    Sunspot.index!(@post)
  end

  it "correctly retrieves the string as UTF-8" do
    expect(Sunspot.search(Post).hits.first.stored(:title)).to eq("Híghgrøøvé")
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sunspot-2.7.1 spec/integration/unicode_spec.rb
sunspot-2.7.0 spec/integration/unicode_spec.rb
sunspot-2.6.0 spec/integration/unicode_spec.rb
sunspot-2.5.0 spec/integration/unicode_spec.rb
sunspot-2.4.0 spec/integration/unicode_spec.rb
sunspot-2.3.0 spec/integration/unicode_spec.rb
sunspot-2.2.8 spec/integration/unicode_spec.rb