Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (20 sloc) 0.551 kb
# encoding: UTF-8
require "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
Jump to Line
Something went wrong with that request. Please try again.