Sha256: 537f3853131fbe4ecb912a2cd08fc7caaab95895f51406ddf9f628cee947fa69
Contents?: true
Size: 550 Bytes
Versions: 1
Compression:
Stored size: 550 Bytes
Contents
require 'minitest/autorun' require_relative '../lib/db_rotator' require_relative '../lib/db_rotator_config' TEST_SCHEMA_PREFIX = "__minitest_" TEST_MYSQL_COMMAND = "mysql -u root" def dummy_config(config={}) DBRotatorConfig.new.tap do |cfg| cfg.instance_variable_set(:@config, { db_prefix: TEST_SCHEMA_PREFIX, scp_command: "cp test/fixtures/basic_dump.sql.bz2", local_dump_destination: "/tmp", mysql_command: TEST_MYSQL_COMMAND, }.merge(config)) cfg.add_default_values cfg.add_derived_values end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
db-rotator-0.1.0 | test/helper.rb |