I’ve been trying to find out if Rails 4.2 provides a single command that
regenerates config/application.rb in an existing application.
I’m trying to find something more lightweight than running ‘rails new
MyApp’ in a new directory and copying over the file.
The reason I ask is imagine a Rails app is ‘rails new’-ed without the
Then at a much later date, this app is switched to RSpec. Can
config/application.rb be regenerated as if the --skip-test-unit option
been supplied originally to ‘rails new …’?
All this would effectively do is change the require statements near the
of config/application.rb file from:
Pick the frameworks you want:
It’s possible to get part of the way there with this command:
Which asks if you want to overwrite config/application.rb and generates
new copy. However, I’ve not been successful in getting that command to
use of the --skip-test-unit option. I’ve tried variations on this
Many thanks in advance for any help,