Sha256: c466b15ebc8dfa6456c1c63bd045d418f083584442f9b53f1d12b576714794df

Contents?: true

Size: 571 Bytes

Versions: 23

Compression:

Stored size: 571 Bytes

Contents

# encoding: UTF-8

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

class TestPersistenceControlCommands < Test::Unit::TestCase

  include Helper::Client

  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/persistence_control_commands_test.rb
redis-3.3.5 test/persistence_control_commands_test.rb
logstash-filter-cache-redis-0.3.1 vendor/bundle/jruby/1.9/gems/redis-3.3.3/test/persistence_control_commands_test.rb
logstash-filter-cache-redis-0.3.0 vendor/bundle/jruby/1.9/gems/redis-3.3.3/test/persistence_control_commands_test.rb
logstash-filter-cache-redis-0.2.0 vendor/bundle/jruby/1.9/gems/redis-3.3.3/test/persistence_control_commands_test.rb
logstash-filter-cache-redis-0.1.0 vendor/bundle/jruby/1.9/gems/redis-3.3.3/test/persistence_control_commands_test.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/redis-3.3.3/test/persistence_control_commands_test.rb
redis-3.3.3 test/persistence_control_commands_test.rb
abaci-0.3.0 vendor/bundle/gems/redis-3.3.1/test/persistence_control_commands_test.rb
abaci-0.3.0 vendor/bundle/gems/redis-3.3.2/test/persistence_control_commands_test.rb
redis-3.3.2 test/persistence_control_commands_test.rb
redis-3.3.1 test/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/persistence_control_commands_test.rb
redis-3.3.0 test/persistence_control_commands_test.rb
discourse-redis-3.2.2 test/persistence_control_commands_test.rb
redis-3.2.2 test/persistence_control_commands_test.rb
redis-3.2.1 test/persistence_control_commands_test.rb
redis-3.2.0 test/persistence_control_commands_test.rb
redis2-namespaced-3.0.7.1 test/persistence_control_commands_test.rb
redis2-namespaced-3.0.7 test/persistence_control_commands_test.rb