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
-
$ spring stop
Make sure spring is stopped -
$ rspec spec/requests/api/merge_requests_spec.rb
Run the spec -
Comment out line
543
inmodels/user.rb
(notification_service.new_user(self, @reset_token)
-
$ rspec spec/requests/api/merge_requests_spec.rb
Run the spec again -
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
-
$ spring stop
Stop Spring again -
$ spec spec/requests/api/merge_requests_spec.rb
Tests are green again
/cc @randx / @maxlazio