summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2012-12-28 14:56:31 +0100
committermh <mh@immerda.ch>2012-12-28 14:56:31 +0100
commite3328a6a37015cae515a45cb8a3c083c74d5989f (patch)
tree461efe13042840d70db7503d0188c1cf8130dca4 /spec
parentc8b07f1967abeee6c7c6fb6a5ba9a53f2d8074bf (diff)
use the memory adapter for tests and ensure that we pass adapter_options
Diffstat (limited to 'spec')
-rw-r--r--spec/spec_helper.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 64ce0de..461a858 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -19,9 +19,8 @@ end
def test_config
return @config unless @config.nil?
@config = default_config
- yaml_path = File.expand_path(base_dir+'/spec/data/test_config.yaml')
- File.unlink(yaml_path) if File.exists?(yaml_path)
- @config['adapter_options'][:path] = yaml_path
+ @config.delete('adapter_options')
+ @config['adapter'] = :Memory
@config
end