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:
Diffstat (limited to 'spec/helpers/notifications_helper_spec.rb')
-rw-r--r--spec/helpers/notifications_helper_spec.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/spec/helpers/notifications_helper_spec.rb b/spec/helpers/notifications_helper_spec.rb
index 555cffba614..a5338659659 100644
--- a/spec/helpers/notifications_helper_spec.rb
+++ b/spec/helpers/notifications_helper_spec.rb
@@ -19,22 +19,6 @@ RSpec.describe NotificationsHelper do
it { expect(notification_title(:global)).to match('Global') }
end
- describe '#notification_event_name' do
- context 'for success_pipeline' do
- it 'returns the custom name' do
- expect(FastGettext).to receive(:cached_find).with('NotificationEvent|Successful pipeline')
- expect(notification_event_name(:success_pipeline)).to eq('Successful pipeline')
- end
- end
-
- context 'for everything else' do
- it 'returns a humanized name' do
- expect(FastGettext).to receive(:cached_find).with('NotificationEvent|Failed pipeline')
- expect(notification_event_name(:failed_pipeline)).to eq('Failed pipeline')
- end
- end
- end
-
describe '#notification_icon_level' do
let(:user) { create(:user) }
let(:global_setting) { user.global_notification_setting }