test/command_map_test.rb in redis-3.3.5 vs test/command_map_test.rb in redis-4.0.0.rc1

- old
+ new

@@ -1,19 +1,17 @@ -# encoding: UTF-8 +require_relative "helper" -require File.expand_path("helper", File.dirname(__FILE__)) - class TestCommandMap < Test::Unit::TestCase include Helper::Client def test_override_existing_commands r.set("counter", 1) assert_equal 2, r.incr("counter") - r.client.command_map[:incr] = :decr + r._client.command_map[:incr] = :decr assert_equal 1, r.incr("counter") end def test_override_non_existing_commands @@ -21,10 +19,10 @@ assert_raise Redis::CommandError do r.idontexist("key") end - r.client.command_map[:idontexist] = :get + r._client.command_map[:idontexist] = :get assert_equal "value", r.idontexist("key") end end