Sha256: 33dc98f83daac0310eda3bb81e5b0ce11a746a572fc21938b21fec47c359c2ce

Contents?: true

Size: 316 Bytes

Versions: 54

Compression:

Stored size: 316 Bytes

Contents

# encoding: UTF-8

require File.expand_path("./helper", File.dirname(__FILE__))

setup do
  init Redis.new(OPTIONS)
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 Time.at(r.lastsave) <= Time.now
end

Version data entries

54 entries across 54 versions & 7 rubygems

Version Path
abaci-0.3.0 vendor/bundle/gems/redis-2.2.2/test/persistence_control_commands_test.rb
classiccms-0.7.5 vendor/bundle/gems/redis-2.2.2/test/persistence_control_commands_test.rb
classiccms-0.7.4 vendor/bundle/gems/redis-2.2.2/test/persistence_control_commands_test.rb
classiccms-0.7.3 vendor/bundle/gems/redis-2.2.2/test/persistence_control_commands_test.rb
classiccms-0.7.2 vendor/bundle/gems/redis-2.2.2/test/persistence_control_commands_test.rb
classiccms-0.7.1 vendor/bundle/gems/redis-2.2.2/test/persistence_control_commands_test.rb
classiccms-0.7.0 vendor/bundle/gems/redis-2.2.2/test/persistence_control_commands_test.rb
classiccms-0.6.9 vendor/bundle/gems/redis-2.2.2/test/persistence_control_commands_test.rb
classiccms-0.6.8 vendor/bundle/gems/redis-2.2.2/test/persistence_control_commands_test.rb
classiccms-0.6.7 vendor/bundle/gems/redis-2.2.2/test/persistence_control_commands_test.rb
classiccms-0.6.6 vendor/bundle/gems/redis-2.2.2/test/persistence_control_commands_test.rb
classiccms-0.6.5 vendor/bundle/gems/redis-2.2.2/test/persistence_control_commands_test.rb
classiccms-0.6.4 vendor/bundle/gems/redis-2.2.2/test/persistence_control_commands_test.rb
classiccms-0.6.3 vendor/bundle/gems/redis-2.2.2/test/persistence_control_commands_test.rb
classiccms-0.6.2 vendor/bundle/gems/redis-2.2.2/test/persistence_control_commands_test.rb
classiccms-0.6.1 vendor/bundle/gems/redis-2.2.2/test/persistence_control_commands_test.rb
classiccms-0.6.0 vendor/bundle/gems/redis-2.2.2/test/persistence_control_commands_test.rb
classiccms-0.5.17 vendor/bundle/gems/redis-2.2.2/test/persistence_control_commands_test.rb
classiccms-0.5.16 vendor/bundle/gems/redis-2.2.2/test/persistence_control_commands_test.rb
classiccms-0.5.15 vendor/bundle/gems/redis-2.2.2/test/persistence_control_commands_test.rb