Sha256: 60cbc8be0a266a0ffc7fe375e284556a9cc9a56ba8da0e5cd214e296485ee0b4
Contents?: true
Size: 323 Bytes
Versions: 2
Compression:
Stored size: 323 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
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
gorsuch-redis-3.0.0.rc1 | test/encoding_test.rb |
redis-3.0.0.rc1 | test/encoding_test.rb |