Switch branches, reload environment
17/05/2010
When switching branches make sure to restart the application server to ensure that the environment is reloaded. Branches may have different gem dependencies and configurations which can lead to frustration.
$ git checkout feature_65
$ rake test:integration
19 tests, 13 assertions, 1 failures, 0 errors
1) Failure: uninitialized constant Project::Grit
environment.rb
config.gem 'grit'
Yep its including the Grit gem!
10.times do puts "Frustrated!" sleep(1) end
$ touch tmp/restart.txt
$ rake test:integration
19 tests, 13 assertions, 0 failures, 0 errors