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