Sha256: 2be85299ef18e3f431d32cc88ad20d04369ab90a4fceb2afc0358f5cc39a52d5

Contents?: true

Size: 343 Bytes

Versions: 11

Compression:

Stored size: 343 Bytes

Contents

# encoding: UTF-8

require "helper"

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

11 entries across 11 versions & 3 rubygems

Version Path
redis-3.0.5 test/encoding_test.rb
sidekiq-statsd-0.1.1 vendor/ruby/1.9.1/gems/redis-3.0.4/test/encoding_test.rb
sidekiq-statsd-0.1.0 vendor/ruby/1.9.1/gems/redis-3.0.4/test/encoding_test.rb
redis-3.0.4 test/encoding_test.rb
redis-3.0.3 test/encoding_test.rb
remq-0.0.4 vendor/bundle/gems/redis-3.0.2/test/encoding_test.rb
remq-0.0.3 vendor/bundle/gems/redis-3.0.2/test/encoding_test.rb
redis-3.0.2 test/encoding_test.rb
redis-3.0.1 test/encoding_test.rb
redis-3.0.0 test/encoding_test.rb
redis-3.0.0.rc2 test/encoding_test.rb