recipes/saas.rb in rails_apps_composer-2.2.16 vs recipes/saas.rb in rails_apps_composer-2.2.17
- old
+ new
@@ -29,11 +29,11 @@
remove_file 'features/users/user_show.feature'
copy_from_repo 'features/users/sign_in.feature', :repo => repo
copy_from_repo 'features/users/sign_up.feature', :repo => repo
copy_from_repo 'features/step_definitions/user_steps.rb', :repo => repo
copy_from_repo 'config/locales/devise.en.yml', :repo => repo
-
+
# >-------------------------------[ Models ]--------------------------------<
copy_from_repo 'app/models/ability.rb', :repo => repo
copy_from_repo 'app/models/user.rb', :repo => repo
# >-------------------------------[ Init ]--------------------------------<
@@ -51,14 +51,14 @@
copy_from_repo 'app/controllers/home_controller.rb', :repo => repo
generate 'controller content silver gold platinum --skip-stylesheets --skip-javascripts'
copy_from_repo 'app/controllers/content_controller.rb', :repo => repo
copy_from_repo 'app/controllers/registrations_controller.rb', :repo => repo
copy_from_repo 'app/controllers/application_controller.rb', :repo => repo
+ copy_from_repo 'app/controllers/users_controller.rb', :repo => repo
# >-------------------------------[ Mailers ]--------------------------------<
generate 'mailer UserMailer'
- copy_from_repo 'spec/mailers/user_mailer_spec.rb', :repo => repo
copy_from_repo 'app/mailers/user_mailer.rb', :repo => repo
# >-------------------------------[ Views ]--------------------------------<
copy_from_repo 'app/views/home/index.html.erb', :repo => repo
copy_from_repo 'app/views/layouts/_navigation.html.erb', :repo => repo
@@ -77,10 +77,16 @@
copy_from_repo 'app/assets/javascripts/jquery.readyselector.js', :repo => repo
copy_from_repo 'app/assets/javascripts/jquery.externalscript.js', :repo => repo
copy_from_repo 'app/assets/javascripts/registrations.js.erb', :repo => repo
copy_from_repo 'app/assets/stylesheets/application.css.scss', :repo => repo
copy_from_repo 'app/assets/stylesheets/pricing.css.scss', :repo => repo
-
+
+ # >-------------------------------[ RSpec ]--------------------------------<
+ say_wizard "copying RSpec tests from the rails-stripe-membership-saas examples"
+ copy_from_repo 'spec/models/user_spec.rb', :repo => repo
+ copy_from_repo 'spec/controllers/content_controller_spec.rb', :repo => repo
+ copy_from_repo 'spec/mailers/user_mailer_spec.rb', :repo => repo
+
### GIT ###
git :add => '-A' if prefer :git, true
git :commit => '-qm "rails_apps_composer: membership app"' if prefer :git, true
end # after_bundler
end # rails-stripe-membership-saas