diff --git a/spec/models/project_services/slack_service/build_message_spec.rb b/spec/models/project_services/slack_service/build_message_spec.rb index 0b876f4fd26d47a16e41f37f787d0678eebbaa39..452f4e2782c80568f71bffc76f8deeaa6438b0ed 100644 --- a/spec/models/project_services/slack_service/build_message_spec.rb +++ b/spec/models/project_services/slack_service/build_message_spec.rb @@ -47,18 +47,6 @@ describe SlackService::BuildMessage do end end - describe '#seconds_name' do - let(:status) { 'failed' } - let(:color) { 'danger' } - let(:duration) { 1 } - - it 'returns seconds as singular when there is only one' do - expect(subject.pretext).to be_empty - expect(subject.fallback).to eq(message) - expect(subject.attachments).to eq([text: message, color: color]) - end - end - def build_message(status_text = status) "<example.gitlab.com|project_name>:" \ " Commit <example.gitlab.com/commit/" \ diff --git a/spec/models/project_services/slack_service/pipeline_message_spec.rb b/spec/models/project_services/slack_service/pipeline_message_spec.rb index 384b22b7103b7f566fc2a17a9f41f79d5f70e88c..babb3909f5681eda53d10cb1a47a92bffec15d17 100644 --- a/spec/models/project_services/slack_service/pipeline_message_spec.rb +++ b/spec/models/project_services/slack_service/pipeline_message_spec.rb @@ -46,18 +46,6 @@ describe SlackService::PipelineMessage do end end - describe '#seconds_name' do - let(:status) { 'failed' } - let(:color) { 'danger' } - let(:duration) { 1 } - - it 'returns seconds as singular when there is only one' do - expect(subject.pretext).to be_empty - expect(subject.fallback).to eq(message) - expect(subject.attachments).to eq([text: message, color: color]) - end - end - def build_message(status_text = status) "<example.gitlab.com|project_name>:" \ " Pipeline <example.gitlab.com/pipelines/123|97de212e>" \