Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-09-27 00:10:08 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-09-27 00:10:08 +0300
commit13272cad0b5e74d26722a227b4965944d65b0e79 (patch)
treed5d4b05fab2b6149e482e7c60c21ba9bd427ce01 /spec/services/applications
parent332df93cf612d3ad71e35f6dc214f9b984d45287 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/services/applications')
-rw-r--r--spec/services/applications/create_service_spec.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/spec/services/applications/create_service_spec.rb b/spec/services/applications/create_service_spec.rb
index 92e63a24b2a..8b8beb057a9 100644
--- a/spec/services/applications/create_service_spec.rb
+++ b/spec/services/applications/create_service_spec.rb
@@ -12,13 +12,7 @@ RSpec.describe ::Applications::CreateService do
context 'when scopes are present' do
let(:params) { attributes_for(:application, scopes: ['read_user']) }
- it 'receive notification and change application count' do
- notification_service = instance_double(NotificationService)
- allow(NotificationService).to receive(:new).and_return(notification_service)
-
- expect(notification_service).to receive(:application_created).with(user)
- expect { subject.execute(test_request) }.to change { Doorkeeper::Application.count }.by(1)
- end
+ it { expect { subject.execute(test_request) }.to change { Doorkeeper::Application.count }.by(1) }
end
context 'when scopes are missing' do