RailsApps / rails-composer

Rails Composer. The Rails generator on steroids for starter apps.
http://www.railscomposer.com/
3.38k stars 486 forks source link

Basic minitest rails functionality. #269

Open elorest opened 7 years ago

elorest commented 7 years ago

In my template to get minitest working I'm just doing these 2 steps.

Add this to my gemfile:

gem_group :development, :test do
  gem 'minitest'
  gem 'minitest-rails'
end

Add this to my application.rb to turn on specs and disable helper tests being created by scaffolding.

application %Q(
  config.generators do |g|
    g.test_framework :minitest, spec: true, fixture: true
    g.helper false
    g.view_specs false
  end
)