minitest - Is it possible to prevent controller tests from being generated in Rails 5? -
i've added following application.rb:
config.generators |g| g.controller_specs false g.test_framework :minitest, spec: false, fixture: false end however, controller tests continue generated when running rails generate resource foo
bundle exec rails generate resource foo invoke active_record create db/migrate/20170912163219_create_foos.rb create app/models/foo.rb invoke minitest create test/models/foo_test.rb invoke controller create app/controllers/foos_controller.rb invoke minitest create test/controllers/foos_controller_test.rb invoke resource_route route resources :foos am missing something? has config api changed? no longer possible?
this (currently) shortcoming of minitest-rails library, ignores g.controller_specs false configuration option.
Comments
Post a Comment