Sha256: 905c39c5cd59302954fa072b785869e0749aad214e28e84cfb6de45d926e6c1a
Contents?: true
Size: 421 Bytes
Versions: 54
Compression:
Stored size: 421 Bytes
Contents
# encoding: UTF-8 require File.expand_path("./helper", File.dirname(__FILE__)) require "redis/distributed" setup do log = StringIO.new init Redis::Distributed.new(NODES, :logger => ::Logger.new(log)) end test "SAVE and BGSAVE" do |r| assert_nothing_raised do r.save end assert_nothing_raised do r.bgsave end end test "LASTSAVE" do |r| assert r.lastsave.all? { |t| Time.at(t) <= Time.now } end
Version data entries
54 entries across 54 versions & 7 rubygems