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
sunspot-2.0.0.pre.120720 spec/integration/unicode_spec.rb
sunspot-1.3.3 spec/integration/unicode_spec.rb
sunspot-1.3.2 spec/integration/unicode_spec.rb
sunspot-2.0.0.pre.120417 spec/integration/unicode_spec.rb
sunspot-2.0.0.pre.120415 spec/integration/unicode_spec.rb
sunspot-1.3.1 spec/integration/unicode_spec.rb
erichummel-sunspot-2.0.0.pre.111215d spec/integration/unicode_spec.rb
erichummel-sunspot-2.0.0.pre.111215c spec/integration/unicode_spec.rb
erichummel-sunspot-2.0.0.pre.111215b spec/integration/unicode_spec.rb
erichummel-sunspot-2.0.0.pre.111215a spec/integration/unicode_spec.rb
erichummel-sunspot-2.0.0.pre.111215 spec/integration/unicode_spec.rb
sunspot-2.0.0.pre.111215 spec/integration/unicode_spec.rb
cb_sunspot-2.0.0.pre.5 spec/integration/unicode_spec.rb
cb_sunspot-2.0.0.pre.3 spec/integration/unicode_spec.rb
cb_sunspot-2.0.0.pre3 spec/integration/unicode_spec.rb
sunspot-1.3.0 spec/integration/unicode_spec.rb