Commit c2bcfab1 authored by Lin Jen-Shin's avatar Lin Jen-Shin
parent ad0511f5
...@@ -47,18 +47,6 @@ describe SlackService::BuildMessage do ...@@ -47,18 +47,6 @@ describe SlackService::BuildMessage do
end end
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) def build_message(status_text = status)
"<example.gitlab.com|project_name>:" \ "<example.gitlab.com|project_name>:" \
" Commit <example.gitlab.com/commit/" \ " Commit <example.gitlab.com/commit/" \
......
...@@ -46,18 +46,6 @@ describe SlackService::PipelineMessage do ...@@ -46,18 +46,6 @@ describe SlackService::PipelineMessage do
end end
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) def build_message(status_text = status)
"<example.gitlab.com|project_name>:" \ "<example.gitlab.com|project_name>:" \
" Pipeline <example.gitlab.com/pipelines/123|97de212e>" \ " Pipeline <example.gitlab.com/pipelines/123|97de212e>" \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment