Specs failing when changing a model

Created by: jvanbaarsen

When I run a spec file for the first time the results are green, when I then change something in a arbitrary model and rerun the specs they are red. When I then run $ spring stop and rerun the same spec its green again.

Steps to reproduce

  1. $ spring stop Make sure spring is stopped

  2. $ rspec spec/requests/api/merge_requests_spec.rb Run the spec

  3. Comment out line 543 in models/user.rb (notification_service.new_user(self, @reset_token)

  4. $ rspec spec/requests/api/merge_requests_spec.rb Run the spec again

  5. You now get a lot of failing tests, with the main error being:

    Failure/Error: let(:user) { create(:user) }
     LoadError:
       Unable to autoload constant Gitlab::Popen, expected /Users/jeroen/Development/gitlab-development-kit/gitlab/lib/gitlab/popen.rb to define it
  6. $ spring stop Stop Spring again

  7. $ spec spec/requests/api/merge_requests_spec.rb Tests are green again

/cc @randx / @maxlazio