Sha256: 9cf71ed6432b07772ad68b01adc9be3c50910ba2c830df67cd9fe20dfd4262ab
Contents?: true
Size: 682 Bytes
Versions: 3
Compression:
Stored size: 682 Bytes
Contents
require 'spec' ROOT = File.expand_path('../..', File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(ROOT,'lib')) 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dm-adapter-simpledb-1.3.0 | spec/unit/unit_spec_helper.rb |
dm-adapter-simpledb-1.2.0 | spec/unit/unit_spec_helper.rb |
dm-adapter-simpledb-1.1.0 | spec/unit/unit_spec_helper.rb |