Permalink
Browse files

Fixed problem with 'with_model' gem in DataMapper tests and Mongoid t…

…ests.
  • Loading branch information...
1 parent 9eebeb2 commit f18f53c9ce2120c9d5cc4978fc4b554c33f1e209 @moffff moffff committed Nov 9, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/spec_helper.rb
View
2 spec/spec_helper.rb
@@ -17,7 +17,7 @@
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

0 comments on commit f18f53c

Please sign in to comment.