Remove redundant tests, feedback:

https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5525#note_14993999
This commit is contained in:
Lin Jen-Shin 2016-09-06 19:53:02 +08:00
parent ad0511f5b0
commit c2bcfab18a
2 changed files with 0 additions and 24 deletions

View File

@ -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/" \

View File

@ -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>" \