Summary
I am converting a Rails project from RSPec to Minitest and want my Rails project generator to create minitest test files.
In detail
I have a Rails project which I generated with skipped tests:
rails new example --skip-test-unit
I then added RSpec (following the standard rails generate rspec:install). Then I thought I'd like to try minitest instead.
I made a project doppelganger and copied test directory into my rails project:
rails new example # so we have test unit now
While I can run minitest tests the generator does not make the files for me.
rails g model Contact --skip-migration
Running via Spring preloader in process 13814
invoke active_record
create app/models/contact.rb
# no test files!
I have tried:
- Reading through stackoverflow - everyone is converting it into RSpec
- Stop and started Spring
- commenting out a line in application.rb
config.generators.system_tests = nil
How can I fix this to get minitest files generated?