Sha256: a36a9061ca3fd295d4762ebbbecbe5394f1bc334e9b8fc2836fa439e87230a78

Contents?: true

Size: 529 Bytes

Versions: 11

Compression:

Stored size: 529 Bytes

Contents

# encoding: UTF-8

require "helper"

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

11 entries across 11 versions & 3 rubygems

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