Sha256: 111d48bdad660b295575423caaca0899d4fd5d1040ec363e1cc53cf60c546220

Contents?: true

Size: 541 Bytes

Versions: 5

Compression:

Stored size: 541 Bytes

Contents

require_relative "helper"

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

5 entries across 5 versions & 1 rubygems

Version Path
redis-4.0.3 test/distributed_persistence_control_commands_test.rb
redis-4.1.0.beta1 test/distributed_persistence_control_commands_test.rb
redis-4.0.2 test/distributed_persistence_control_commands_test.rb
redis-4.0.1 test/distributed_persistence_control_commands_test.rb
redis-4.0.0 test/distributed_persistence_control_commands_test.rb