Sha256: 78140b13a8d6f56e411d12c4ad856ff27e64cdd5241349e9da5f3dec1158a54b

Contents?: true

Size: 593 Bytes

Versions: 23

Compression:

Stored size: 593 Bytes

Contents

# encoding: UTF-8

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

class TestDistributedPersistenceControlCommands < Test::Unit::TestCase

  include Helper::Distributed

  def test_save
    redis_mock(:save => lambda { "+SAVE" }) do |redis|
      assert_equal ["SAVE"], redis.save
    end
  end

  def test_bgsave
    redis_mock(:bgsave => lambda { "+BGSAVE" }) do |redis|
      assert_equal ["BGSAVE"], redis.bgsave
    end
  end

  def test_lastsave
    redis_mock(:lastsave => lambda { "+LASTSAVE" }) do |redis|
      assert_equal ["LASTSAVE"], redis.lastsave
    end
  end
end

Version data entries

23 entries across 22 versions & 8 rubygems

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