gitlab-org--gitlab-foss/spec/workers
Douwe Maan 82a39e3e69 Merge branch '21010-emailsonpushworker-incorrectly-claims-deleted-a-commit-after-a-push' into 'master'
Resolve "EmailsOnPushWorker incorrectly claims deleted a commit after a push"

## What does this MR do?

Fix the comparison order in the emails on push worker, so regular pushes don't show a message about force pushing.

## Are there points in the code the reviewer needs to double check?

Don't think so, it was just a typo: `after_sha` should map to the `source_branch` argument, because it's the head of the comparison.

## Why was this MR needed?

To fix a regression!

## What are the relevant issue numbers?

Closes #21010.

## Does this MR meet the acceptance criteria?

- [x] ~~[CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added~~
- [x] ~~[Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md)~~
- [x] ~~API support added~~
- Tests
  - [x] Added for this feature/bug
  - [ ] All builds are passing
- [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides)
- [x] Branch has no merge conflicts with `master` (if you do - rebase it please)
- [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)

See merge request !5894
2016-08-19 18:16:55 +00:00
..
repository_check Do not check repos without push events 2016-06-15 19:11:25 +02:00
build_email_worker_spec.rb Simplify the name for data builder, feedback: 2016-08-12 16:09:29 +08:00
delete_user_worker_spec.rb Specs for the DeleteUserService 2016-03-15 22:19:51 +01:00
email_receiver_worker_spec.rb so we use separate classes to handle different tasks 2016-05-18 17:25:45 -05:00
emails_on_push_worker_spec.rb Don't log to STDOUT in specs 2016-08-19 13:08:21 +01:00
expire_build_artifacts_worker_spec.rb Make sure that artifacts_file is nullified after removing artifacts 2016-06-17 12:58:26 +02:00
git_garbage_collect_worker_spec.rb Refresh branch cache after `git gc` 2016-07-13 06:49:58 -07:00
group_destroy_worker_spec.rb Fix bug where destroying a namespace would not always destroy projects 2016-08-11 15:36:35 -07:00
merge_worker_spec.rb Unify check branch name exist 2016-06-20 21:44:21 +02:00
post_receive_spec.rb Pre-create all builds for Pipeline when a trigger is received 2016-08-11 15:22:35 +02:00
project_cache_worker_spec.rb Enable Style/EmptyLines cop, remove redundant ones 2016-07-01 21:56:17 +02:00
project_destroy_worker_spec.rb Fix skip_repo parameter being ignored when destroying a namespace 2016-08-03 17:07:38 -07:00
remove_expired_group_links_worker_spec.rb Allow project group links to be expired 2016-08-18 22:45:41 +01:00
remove_expired_members_worker_spec.rb Allow project group links to be expired 2016-08-18 22:45:41 +01:00
repository_fork_worker_spec.rb Fix a bug where forking a project from a repository storage to another would fail 2016-07-26 17:22:13 -04:00
repository_import_worker_spec.rb Mask credentials from URL when import of project has failed. 2016-05-18 21:16:36 -05:00
stuck_ci_builds_worker_spec.rb Don't fail builds for projects that are deleted when they are stuck 2016-06-12 15:15:58 +02:00