gitlab-org--gitlab-foss/spec/controllers
Douwe Maan c11006ac6c Merge branch '18755-fix-destroy-project-causes-post_decline_request-to-be-executed' into 'master'
Resolve "Destroying a project causes post_decline_request to be executed"

## What does this MR do?

Ensure we don't send "access request declined" to access requesters when a project is deleted.

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

I've created a service to decouple the notification sending from the AR model.

## Why was this MR needed?

Because there was an issue.

## What are the relevant issue numbers?

Fixes #18755, #18750.

## Does this MR meet the acceptance criteria?

- [x] No CHANGELOG needed.
- [x] Tests
  - [x] Added for this feature/bug
  - [x] 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 !4744
2016-06-22 01:15:29 +00:00
..
admin Enable RSpec/NotToNot cop and auto-correct offenses 2016-05-24 15:40:29 -04:00
ci
groups Fix and remove duplicate specs 2016-06-20 12:36:59 +02:00
import Remove require_relative 'import_spec_helper' 2016-06-08 18:18:49 +02:00
oauth Fix endless redirections when accessing user OAuth applications when they are disabled 2016-06-08 05:52:04 -07:00
profiles Added CHANGELOG item and fixed Rubocop errors 2016-06-14 18:37:22 -05:00
projects Fix and remove duplicate specs 2016-06-20 12:36:59 +02:00
abuse_reports_controller_spec.rb
application_controller_spec.rb Fix rubocop spec. 2016-06-03 10:11:36 +05:30
autocomplete_controller_spec.rb
blob_controller_spec.rb Fix Error 500 when viewing a blob with binary characters after the 1024-byte mark 2016-06-12 07:36:25 -07:00
commit_controller_spec.rb
groups_controller_spec.rb Incorportate feedback 2016-06-01 12:10:08 +02:00
health_check_controller_spec.rb Support token header for health check token, and general cleanup of the health_check feature. 2016-05-11 17:27:08 -07:00
help_controller_spec.rb
invites_controller_spec.rb
namespaces_controller_spec.rb
notification_settings_controller_spec.rb Re-use notifications dropdown on user profile 2016-06-16 23:34:21 -03:00
projects_controller_spec.rb Fixed issue with returning ref in commits JSON 2016-06-20 11:37:27 +01:00
registrations_controller_spec.rb Update tests for the current_application_settings request store changes 2016-05-27 19:05:52 -07:00
root_controller_spec.rb
sent_notifications_controller_spec.rb
sessions_controller_spec.rb Add a U2F-specific audit log entry after logging in. 2016-06-06 12:50:31 +05:30
snippets_controller_spec.rb
uploads_controller_spec.rb
users_controller_spec.rb