Fixed problem with 'with_model' gem in DataMapper tests and Mongoid tests.
This commit is contained in:
parent
9eebeb2155
commit
f18f53c9ce
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user