Enabling TuneUp only in dev mode

Subscribe to Enabling TuneUp only in dev mode 3 post(s), 2 voice(s)

 
Avatar rgagnon 8 post(s)

When I put config.gem ‘fiveruns_tuneup’ in my environment.rb TuneUp works perfectly. But, when I put this line in config/environments/development.rb, it does not activate TuneUp.
any ideas?
Rémi

 
Avatar Rachel G Administator 50 post(s)

Hi Rémi,
TuneUp gem is designed to only go in the environment.rb file. However, it also only instruments the dev environment and does not instrument the production environment. So you should not see TuneUp in your production environment.
Let me know if you have any other questions.
Thanks,
Rachel

 
Avatar rgagnon 8 post(s)

It seems that when I run my rspec(with autospec) or even manually, that TuneUp is enabled so I have to do this to enable it only for dev:
config.gem ‘fiveruns_tuneup’ unless ENV[‘RAILS_ENV’] != ‘development’