Sha256: 97095fd68c2dd326d43266425139a74ed0a406cc8443f5be0169cece1ee28e1b

Contents?: true

Size: 386 Bytes

Versions: 5

Compression:

Stored size: 386 Bytes

Contents

require 'data_mapper/adapters/data_object_adapter'

class MockAdapter < DataMapper::Adapters::DataObjectAdapter
  COLUMN_QUOTING_CHARACTER = "`"
  TABLE_QUOTING_CHARACTER = "`"
  
  def delete(instance_or_klass, options = nil)
  end
  
  def save(database_context, instance)
  end
  
  def load(database_context, klass, options)
  end
  
  def table_exists?(name)
    true
  end
  
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
datamapper-0.2.5 spec/mock_adapter.rb
datamapper-0.3.1 spec/mock_adapter.rb
datamapper-0.2.4 spec/mock_adapter.rb
datamapper-0.3.0 spec/mock_adapter.rb
datamapper-0.3.2 spec/mock_adapter.rb