Sha256: 10aab5fc716aeb6ea9a0fe76b98c63899e43bf7de2c303dc9b13b4e7a6892941
Contents?: true
Size: 299 Bytes
Versions: 2
Compression:
Stored size: 299 Bytes
Contents
TEST_ADEPTER = ENV['DCELL_TEST_ADAPTER'] || 'redis' require "dcell/registries/#{TEST_ADEPTER}_adapter" def test_db_options options = {} adapter = TEST_ADEPTER if adapter options[:registry] = {:adapter => adapter} options[:registry].merge! TEST_DB[adapter.to_sym] end options end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
dcell-0.16.1 | spec/options/02-registry.rb |
stn-dcell-0.16.0 | spec/options/02-registry.rb |