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