Sha256: 7a307e0b8815d93929c80d57e9611d016d52ef743f172e51dded8805ab3c15ea

Contents?: true

Size: 381 Bytes

Versions: 36

Compression:

Stored size: 381 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
    Sunspot.search(Post).hits.first.stored(:title).should == "Híghgrøøvé"
  end
end

Version data entries

36 entries across 36 versions & 7 rubygems

Version Path
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/sunspot-2.2.7/spec/integration/unicode_spec.rb
sunspot-2.2.7 spec/integration/unicode_spec.rb
sunspot-2.2.6 spec/integration/unicode_spec.rb
sunspot-2.2.5 spec/integration/unicode_spec.rb
sunspot-2.2.4 spec/integration/unicode_spec.rb
sunspot-2.2.3 spec/integration/unicode_spec.rb
sunspot-2.2.2 spec/integration/unicode_spec.rb
sunspot-2.2.1 spec/integration/unicode_spec.rb
sunspot-2.2.0 spec/integration/unicode_spec.rb
sunspot-2.1.1 spec/integration/unicode_spec.rb
sunspot-2.1.0 spec/integration/unicode_spec.rb
sunspot-2.0.0 spec/integration/unicode_spec.rb
sunspot-2.0.0.pre.130115 spec/integration/unicode_spec.rb
gojee-sunspot-2.0.5 spec/integration/unicode_spec.rb
sunspot-2.0.0.pre.120925 spec/integration/unicode_spec.rb
sunspot_solr-2.0.0.pre.120924 sunspot/spec/integration/unicode_spec.rb
sunspot_rails-2.0.0.pre.120924 sunspot/spec/integration/unicode_spec.rb
sunspot-2.0.0.pre.120924 sunspot/spec/integration/unicode_spec.rb
gojee-sunspot-2.0.4 spec/integration/unicode_spec.rb
gojee-sunspot-2.0.2 spec/integration/unicode_spec.rb