gitlab-org--gitlab-foss/spec/controllers/projects/merge_requests
Rémy Coutable 45ce5ff7ea
Fix Projects::MergeRequests::DiffsController specs
These specs were flaky and only passing after a retry due to how
rspec-retry works.

1. The test with paths that don't exist was returning 200 on the first
  try, then 404 on the second, not because the paths don't exist, but
  because the MR IID didn't change, thus the MR couldn't be found.
  I decided to remove the test entirely since we don't seem to return
  404 for paths that don't exist.
2. The test with a user that cannot view the merge request was failing
  the first time because the project owner wasn't removed with
  `project.team.truncate`.
  Changing the `let(:user)` to `create(:user)` and calling
  `project.add_maintainer(user)` in the `before` block fix the test.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2019-02-18 12:13:08 +01:00
..
conflicts_controller_spec.rb Update specs to rails5 format 2018-12-19 10:04:31 +11:00
creations_controller_spec.rb Add committers and authors methods on MergeRequest 2019-01-08 00:27:29 +01:00
diffs_controller_spec.rb Fix Projects::MergeRequests::DiffsController specs 2019-02-18 12:13:08 +01:00