Module: DataMapper::Spec::Adapters

Defined in:
lib/dm-core/spec/setup.rb,
lib/dm-core/spec/lib/adapter_helpers.rb

Defined Under Namespace

Modules: Helpers Classes: Adapter, InMemoryAdapter

Class Method Summary collapse

Class Method Details

.use(adapter_class) ⇒ Object



87
88
89
90
# File 'lib/dm-core/spec/setup.rb', line 87

def self.use(adapter_class)
  Spec.spec_adapters[:default]   = adapter_class.new(:default)
  Spec.spec_adapters[:alternate] = adapter_class.new(:alternate)
end