Sha256: 44d328de50f320190d12cf10e3b4a64389a61bcb5d704ee236cb53582a68f4b1

Contents?: true

Size: 385 Bytes

Versions: 23

Compression:

Stored size: 385 Bytes

Contents

# encoding: UTF-8

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

class TestEncoding < Test::Unit::TestCase

  include Helper::Client

  def test_returns_properly_encoded_strings
    if defined?(Encoding)
      with_external_encoding("UTF-8") do
        r.set "foo", "שלום"

        assert_equal "Shalom שלום", "Shalom " + r.get("foo")
      end
    end
  end
end

Version data entries

23 entries across 22 versions & 8 rubygems

Version Path
finsync_redis-3.3.5 test/encoding_test.rb
redis-3.3.5 test/encoding_test.rb
logstash-filter-cache-redis-0.3.1 vendor/bundle/jruby/1.9/gems/redis-3.3.3/test/encoding_test.rb
logstash-filter-cache-redis-0.3.0 vendor/bundle/jruby/1.9/gems/redis-3.3.3/test/encoding_test.rb
logstash-filter-cache-redis-0.2.0 vendor/bundle/jruby/1.9/gems/redis-3.3.3/test/encoding_test.rb
logstash-filter-cache-redis-0.1.0 vendor/bundle/jruby/1.9/gems/redis-3.3.3/test/encoding_test.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/redis-3.3.3/test/encoding_test.rb
redis-3.3.3 test/encoding_test.rb
abaci-0.3.0 vendor/bundle/gems/redis-3.3.1/test/encoding_test.rb
abaci-0.3.0 vendor/bundle/gems/redis-3.3.2/test/encoding_test.rb
redis-3.3.2 test/encoding_test.rb
redis-3.3.1 test/encoding_test.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/redis-3.3.0/test/encoding_test.rb
redis-3.3.0 test/encoding_test.rb
discourse-redis-3.2.2 test/encoding_test.rb
redis-3.2.2 test/encoding_test.rb
redis-3.2.1 test/encoding_test.rb
redis-3.2.0 test/encoding_test.rb
redis2-namespaced-3.0.7.1 test/encoding_test.rb
redis2-namespaced-3.0.7 test/encoding_test.rb