Sha256: 01c097533b9a9e43e59acb296005e972d722cfbd6e16fd4f97487847571eb593

Contents?: true

Size: 471 Bytes

Versions: 2

Compression:

Stored size: 471 Bytes

Contents

require 'minitest/autorun'
require_relative '../lib/db_rotator'
require_relative '../lib/db_rotator_config'

TEST_SCHEMA_PREFIX = "__minitest_"

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"
    }.merge(config))

    cfg.add_default_values
    cfg.add_derived_values
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
db-rotator-0.0.3 test/helper.rb
db-rotator-0.0.2 test/helper.rb