diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index <HASH>..<HASH> 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -33,5 +33,9 @@ RSpec.configure do |config|
     end
     ActiveRecordObject.reset
     DatamapperObject.reset
+
+    XapianDb.setup do |config|
+      config.adapter :generic
+    end
   end
 end
set generic adapter as default for specs