Example of using template with name rails_api_ember_template.rb
:
rails new <your-project-name> --skip --skip-bundle --template https://raw.githubusercontent.com/monsoonco/monsoon-rails-templates/master/rails_api_ember_template.rb
Scripts are tested with cucumber. Here is an example of running cucumber scenarios for rails_api_ember_template.rb
:
cucumber features/rails_api_ember_template.feature
In tests assertions are made against dummy directory, which contains files that are added by the script (preserving rails directory layout). You can quickly look at what should you expect from running a script there.