From f18f53c9ce2120c9d5cc4978fc4b554c33f1e209 Mon Sep 17 00:00:00 2001 From: Artem Kornienko Date: Wed, 9 Nov 2011 18:38:19 +0200 Subject: [PATCH] Fixed problem with 'with_model' gem in DataMapper tests and Mongoid tests. --- spec/spec_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 9576275..c5857da 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -17,7 +17,7 @@ RSpec.configure do |config| Project.delete_all Category.delete_all end - config.extend WithModel + config.extend WithModel if ENV["MODEL_ADAPTER"].nil? || ENV["MODEL_ADAPTER"] == "active_record" end class Ability