Sha256: ee26b2f07450141c4ac83b173ee435220c15bab8a70b14d5295aba4696410af4
Contents?: true
Size: 519 Bytes
Versions: 6
Compression:
Stored size: 519 Bytes
Contents
require_relative "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
6 entries across 6 versions & 1 rubygems