You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you may know, generally speaking in the generation process, the test code of each example app is read by (or "flows into") gem rails_apps_composer.
Just as you suggest, the test code in each example app could be made compatible with MongoDB, as well as with ActiveRecord. Examples are pull request 8 for app rails3-subdomains and pull request 25 for app rails3-mongoid-devise.
Some people would like to select preference MongoDB generally. And this proposal would advance us a step further toward enabling our tests to work (across all the apps) for them.
zealot128
pushed a commit
to zealot128-os/rails-composer
that referenced
this issue
Apr 12, 2014
However, if you're interested in restoring Mongoid as an option in Rails Composer, you can join the MongoDB Rescue Operation. See the blog post for details.
The devise cucumber/Rspec tests use a (old?) invalid way of accessing objects with mongoid.
in find_user and delete_user, changing the @user= line to read:
fixes the problem. (I also made delete_user do @user ||= find_user instead of repeating the same line)
Below is what I chose:
Recipes:
[“controllers”, “core”, “email”, “extras”, “frontend”, “gems”, “git”, “init”, “models”, “prelaunch”, “railsapps”, “readme”, “routes”, “saas”, “setup”, “testing”, “views”]
Preferences:
{:git=>true, :railsapps=>“none”, :dev_webserver=>“webrick”, :prod_webserver=>“puma”, :database=>“mongodb”, :orm=>“mongoid”, :templates=>“erb”, :unit_test=>“rspec”, :integration=>“cucumber”, :fixtures=>“factory_girl”, :frontend=>“bootstrap”, :bootstrap=>“sass”, :email=>“mandrill”, :authentication=>“devise”, :devise_modules=>“default”, :authorization=>“cancan”, :form_builder=>“simple_form”, :starter_app=>“admin_app”, :quiet_assets=>true, :ban_spiders=>true, :rvmrc=>true}
The text was updated successfully, but these errors were encountered: