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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
39a545d2
Commit
39a545d2
authored
Apr 05, 2016
by
Sebastian Klier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test
parent
6b8bb8f4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
spec/models/project_services/slack_service/wiki_page_message_spec.rb
.../project_services/slack_service/wiki_page_message_spec.rb
+4
-4
No files found.
spec/models/project_services/slack_service/wiki_page_message_spec.rb
View file @
39a545d2
...
@@ -26,7 +26,7 @@ describe SlackService::WikiPageMessage, models: true do
...
@@ -26,7 +26,7 @@ describe SlackService::WikiPageMessage, models: true do
before
{
args
[
:object_attributes
][
:action
]
=
'create'
}
before
{
args
[
:object_attributes
][
:action
]
=
'create'
}
it
do
it
do
expect
(
pretext
).
to
eq
(
expect
(
subject
.
pretext
).
to
eq
(
'Test User created <url|wiki page> in <somewhere.com|project_name>: '
\
'Test User created <url|wiki page> in <somewhere.com|project_name>: '
\
'*Wiki page title*'
)
'*Wiki page title*'
)
end
end
...
@@ -36,7 +36,7 @@ describe SlackService::WikiPageMessage, models: true do
...
@@ -36,7 +36,7 @@ describe SlackService::WikiPageMessage, models: true do
before
{
args
[
:object_attributes
][
:action
]
=
'update'
}
before
{
args
[
:object_attributes
][
:action
]
=
'update'
}
it
do
it
do
expect
(
pretext
).
to
eq
(
expect
(
subject
.
pretext
).
to
eq
(
'Test User edited <url|wiki page> in <somewhere.com|project_name>: '
\
'Test User edited <url|wiki page> in <somewhere.com|project_name>: '
\
'*Wiki page title*'
)
'*Wiki page title*'
)
end
end
...
@@ -48,7 +48,7 @@ describe SlackService::WikiPageMessage, models: true do
...
@@ -48,7 +48,7 @@ describe SlackService::WikiPageMessage, models: true do
before
{
args
[
:object_attributes
][
:action
]
=
'create'
}
before
{
args
[
:object_attributes
][
:action
]
=
'create'
}
it
do
it
do
expect
(
attachments
).
to
eq
([
expect
(
subject
.
attachments
).
to
eq
([
{
{
text:
"Wiki page description"
,
text:
"Wiki page description"
,
color:
color
,
color:
color
,
...
@@ -61,7 +61,7 @@ describe SlackService::WikiPageMessage, models: true do
...
@@ -61,7 +61,7 @@ describe SlackService::WikiPageMessage, models: true do
before
{
args
[
:object_attributes
][
:action
]
=
'update'
}
before
{
args
[
:object_attributes
][
:action
]
=
'update'
}
it
do
it
do
expect
(
attachments
).
to
eq
([
expect
(
subject
.
attachments
).
to
eq
([
{
{
text:
"Wiki page description"
,
text:
"Wiki page description"
,
color:
color
,
color:
color
,
...
...
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