Permalink
Browse files

Stub rake task db:test:prepare so mongoid can work with cucumber rake…

… tasks
  • Loading branch information...
1 parent b324f17 commit 6f5994c41bffb88fc738f4f81a04ed9d33b155bb @kfaustino kfaustino committed Jul 22, 2010
Showing with 9 additions and 0 deletions.
  1. +2 −0 recipes/mongoid.rb
  2. +7 −0 templates/mongoid/lib/tasks/mongo.rake
View
@@ -1,6 +1,8 @@
gem 'mongoid', '>= 2.0.0.beta9'
gem 'bson_ext', '1.0.4'
+create_file 'lib/tasks/mongo.rake', load_template('lib/tasks/mongo.rake', 'mongoid')
+
stategies << lambda do
generate 'mongoid:config'
end
@@ -0,0 +1,7 @@
+namespace :db do
+ namespace :test do
+ task :prepare do
+ # Stub out for MongoDB
+ end
+ end
+end

0 comments on commit 6f5994c

Please sign in to comment.