@@ -24,9 +24,10 @@ describe SlackService::BuildMessage do
let(:status){'success'}
let(:color){'good'}
let(:duration){10}
it'returns a message with information about succeeded build'do
message='<somewhere.com|project_name>: Commit <somewhere.com/commit/97de212e80737a608d939f648d959671fb0a0142/builds|97de212e> of <somewhere.com/commits/develop|develop> branch by hacker passed in 10 seconds'
@@ -40,12 +41,13 @@ describe SlackService::BuildMessage do
it'returns a message with information about failed build'do
message='<somewhere.com|project_name>: Commit <somewhere.com/commit/97de212e80737a608d939f648d959671fb0a0142/builds|97de212e> of <somewhere.com/commits/develop|develop> branch by hacker failed in 10 seconds'
@@ -53,6 +55,7 @@ describe SlackService::BuildMessage do
it'returns seconds as singular when there is only one'do
message='<somewhere.com|project_name>: Commit <somewhere.com/commit/97de212e80737a608d939f648d959671fb0a0142/builds|97de212e> of <somewhere.com/commits/develop|develop> branch by hacker failed in 1 second'
@@ -26,6 +26,7 @@ describe SlackService::PipelineMessage do
it'returns a message with information about succeeded build'do
message='<somewhere.com|project_name>: Pipeline <somewhere.com/pipelines/123|97de212e> of <somewhere.com/commits/develop|develop> branch by hacker passed in 10 seconds'
@@ -39,6 +40,7 @@ describe SlackService::PipelineMessage do
it'returns a message with information about failed build'do
message='<somewhere.com|project_name>: Pipeline <somewhere.com/pipelines/123|97de212e> of <somewhere.com/commits/develop|develop> branch by hacker failed in 10 seconds'
@@ -52,6 +54,7 @@ describe SlackService::PipelineMessage do
it'returns seconds as singular when there is only one'do
message='<somewhere.com|project_name>: Pipeline <somewhere.com/pipelines/123|97de212e> of <somewhere.com/commits/develop|develop> branch by hacker failed in 1 second'