Closed misaka closed 1 year ago
Otherwise, rspec isn't available in the development environment, causing 'rails generate' to create unit tests instead of rspecs. This change ensures it creates rspecs.
For example, generating a model before this change (note test_unit used):
test_unit
~/Code/apply-for-a-juggling-licence$ rails generate model juggler invoke active_record create db/migrate/20221220145746_create_jugglers.rb create app/models/juggler.rb invoke test_unit create test/models/juggler_test.rb create test/fixtures/jugglers.yml
And generating a model with this change (note rspec used):
rspec
~/Code/apply-for-a-juggling-licence$ rails generate model juggler invoke active_record create db/migrate/20221220145908_create_jugglers.rb create app/models/juggler.rb invoke rspec create spec/models/juggler_spec.rb
Otherwise, rspec isn't available in the development environment, causing 'rails generate' to create unit tests instead of rspecs. This change ensures it creates rspecs.
For example, generating a model before this change (note
test_unit
used):And generating a model with this change (note
rspec
used):