Sha256: 3c6f290446ef19d166b3e5da73f8b519ee7cb7322bd339888f17303dbd55456e

Contents?: true

Size: 702 Bytes

Versions: 1

Compression:

Stored size: 702 Bytes

Contents

require 'spec'
ROOT = File.expand_path('../..', File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(ROOT,'lib'))
require 'right_aws'
require 'simpledb_adapter'

Spec::Runner.configure do |config|
  config.before :each do
    @sdb = stub("RightAWS::SdbInterface").as_null_object
    @log = stub("Log").as_null_object

    # Using Abstract adapter as a null DB
    DataMapper.setup(:default, 
      :adapter       => 'simpledb',
      :access_key    => "ACCESS_KEY",
      :secret_key    => "SECRET_KEY",
      :domain        => "DOMAIN",
      :logger        => @log,
      :sdb_interface => @sdb
      )
  end

  config.after :each do
    DataMapper::Repository.adapters.delete(:default)
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dm-adapter-simpledb-1.4.0 spec/unit/unit_spec_helper.rb