Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
c2bcfab1
Commit
c2bcfab1
authored
Sep 06, 2016
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove redundant tests, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5525#note_14993999
parent
ad0511f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
24 deletions
+0
-24
spec/models/project_services/slack_service/build_message_spec.rb
...dels/project_services/slack_service/build_message_spec.rb
+0
-12
spec/models/project_services/slack_service/pipeline_message_spec.rb
...s/project_services/slack_service/pipeline_message_spec.rb
+0
-12
No files found.
spec/models/project_services/slack_service/build_message_spec.rb
View file @
c2bcfab1
...
...
@@ -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/"
\
...
...
spec/models/project_services/slack_service/pipeline_message_spec.rb
View file @
c2bcfab1
...
...
@@ -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>"
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment