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



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

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