Sha256: b0297def4f0de12257bf5cca611669d31fe32404294740fc5697755f5e47bc0f

Contents?: true

Size: 324 Bytes

Versions: 54

Compression:

Stored size: 324 Bytes

Contents

# encoding: UTF-8

require File.expand_path("./helper", File.dirname(__FILE__))

setup do
  init Redis.new(OPTIONS)
end

test "returns properly encoded strings" do |r|
  with_external_encoding("UTF-8") do
    r.set "foo", "שלום"

    assert "Shalom שלום" == "Shalom " + r.get("foo")
  end
end if defined?(Encoding)

Version data entries

54 entries across 54 versions & 7 rubygems

Version Path
classiccms-0.5.14 vendor/bundle/gems/redis-2.2.2/test/encoding_test.rb
classiccms-0.5.13 vendor/bundle/gems/redis-2.2.2/test/encoding_test.rb
classiccms-0.5.12 vendor/bundle/gems/redis-2.2.2/test/encoding_test.rb
classiccms-0.5.11 vendor/bundle/gems/redis-2.2.2/test/encoding_test.rb
classiccms-0.5.10 vendor/bundle/gems/redis-2.2.2/test/encoding_test.rb
classiccms-0.5.9 vendor/bundle/gems/redis-2.2.2/test/encoding_test.rb
classiccms-0.5.8 vendor/bundle/gems/redis-2.2.2/test/encoding_test.rb
classiccms-0.5.7 vendor/bundle/gems/redis-2.2.2/test/encoding_test.rb
classiccms-0.5.6 vendor/bundle/gems/redis-2.2.2/test/encoding_test.rb
classiccms-0.5.5 vendor/bundle/gems/redis-2.2.2/test/encoding_test.rb
classiccms-0.5.2 vendor/bundle/gems/redis-2.2.2/test/encoding_test.rb
classiccms-0.5.1 vendor/bundle/gems/redis-2.2.2/test/encoding_test.rb
classiccms-0.5.0 vendor/bundle/gems/redis-2.2.2/test/encoding_test.rb
classiccms-0.4.2 vendor/bundle/gems/redis-2.2.2/test/encoding_test.rb
classiccms-0.4.1 vendor/bundle/gems/redis-2.2.2/test/encoding_test.rb
classiccms-0.4.0 vendor/bundle/gems/redis-2.2.2/test/encoding_test.rb
classiccms-0.3.9 vendor/bundle/gems/redis-2.2.2/test/encoding_test.rb
classiccms-0.3.8 vendor/bundle/gems/redis-2.2.2/test/encoding_test.rb
classiccms-0.3.7 vendor/bundle/gems/redis-2.2.2/test/encoding_test.rb
classiccms-0.3.6 vendor/bundle/gems/redis-2.2.2/test/encoding_test.rb