Sha256: 08a3f55a056720a161e14a86323b617ca370d3ece029847c328f26c823a2d438
Contents?: true
Size: 822 Bytes
Versions: 3
Compression:
Stored size: 822 Bytes
Contents
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'minitest/spec' require 'minitest/unit' require 'swift' require 'etc' # db2 database name is limited to 8 characters, gonna use swift instead of swift_test class MiniTest::Spec def self.supported_by *adapters, &block connection_defaults = { db: 'swift', user: Etc.getlogin, host: '127.0.0.1' } adapters.each do |adapter| begin Swift.setup :default, adapter, connection_defaults rescue => error warn "Unable to setup 'swift' db for #{adapter}, #{error.message}. Skipping..." next end describe("Adapter #{adapter.name}") do before do Swift.setup :default, adapter, connection_defaults end block.call(adapter) end end end end MiniTest::Unit.autorun
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
swift-0.7.2 | test/helper.rb |
swift-0.7.1 | test/helper.rb |
swift-0.7.0 | test/helper.rb |