Fixed problem with 'with_model' gem in DataMapper tests and Mongoid tests.

This commit is contained in:
Artem Kornienko 2011-11-09 18:38:19 +02:00
parent 9eebeb2155
commit f18f53c9ce

View File

@ -17,7 +17,7 @@ RSpec.configure do |config|
Project.delete_all Project.delete_all
Category.delete_all Category.delete_all
end end
config.extend WithModel config.extend WithModel if ENV["MODEL_ADAPTER"].nil? || ENV["MODEL_ADAPTER"] == "active_record"
end end
class Ability class Ability