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
d86c0cda
Commit
d86c0cda
authored
Feb 20, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix specs.
parent
19f04cf9
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
12 additions
and
14 deletions
+12
-14
app/models/project_services/slack_service.rb
app/models/project_services/slack_service.rb
+1
-1
app/models/project_services/slack_service/base_message.rb
app/models/project_services/slack_service/base_message.rb
+0
-0
app/models/project_services/slack_service/issue_message.rb
app/models/project_services/slack_service/issue_message.rb
+1
-1
app/models/project_services/slack_service/merge_message.rb
app/models/project_services/slack_service/merge_message.rb
+1
-1
app/models/project_services/slack_service/push_message.rb
app/models/project_services/slack_service/push_message.rb
+1
-3
spec/models/project_services/slack_service/issue_message_spec.rb
...dels/project_services/slack_service/issue_message_spec.rb
+2
-2
spec/models/project_services/slack_service/merge_message_spec.rb
...dels/project_services/slack_service/merge_message_spec.rb
+2
-2
spec/models/project_services/slack_service/push_message_spec.rb
...odels/project_services/slack_service/push_message_spec.rb
+4
-4
No files found.
app/models/project_services/slack_service.rb
View file @
d86c0cda
app/models/project_services/slack_service/
slack_
base_message.rb
→
app/models/project_services/slack_service/base_message.rb
View file @
d86c0cda
File moved
app/models/project_services/slack_service/
slack_
issue_message.rb
→
app/models/project_services/slack_service/issue_message.rb
View file @
d86c0cda
module
SlackService
class
SlackService
class
IssueMessage
<
BaseMessage
attr_reader
:username
attr_reader
:title
...
...
app/models/project_services/slack_service/
slack_
merge_message.rb
→
app/models/project_services/slack_service/merge_message.rb
View file @
d86c0cda
module
SlackService
class
SlackService
class
MergeMessage
<
BaseMessage
attr_reader
:username
attr_reader
:project_name
...
...
app/models/project_services/slack_service/
slack_
push_message.rb
→
app/models/project_services/slack_service/push_message.rb
View file @
d86c0cda
require
'slack-notifier'
module
SlackService
class
SlackService
class
PushMessage
<
BaseMessage
attr_reader
:after
attr_reader
:before
...
...
spec/models/project_services/slack_
messages/slack_
issue_message_spec.rb
→
spec/models/project_services/slack_
service/
issue_message_spec.rb
View file @
d86c0cda
require
'spec_helper'
describe
Slack
Messages
::
Slack
IssueMessage
do
subject
{
Slack
Messages
::
Slack
IssueMessage
.
new
(
args
)
}
describe
Slack
Service
::
IssueMessage
do
subject
{
Slack
Service
::
IssueMessage
.
new
(
args
)
}
let
(
:args
)
{
{
...
...
spec/models/project_services/slack_
messages/slack_
merge_message_spec.rb
→
spec/models/project_services/slack_
service/
merge_message_spec.rb
View file @
d86c0cda
require
'spec_helper'
describe
Slack
Messages
::
Slack
MergeMessage
do
subject
{
Slack
Messages
::
Slack
MergeMessage
.
new
(
args
)
}
describe
Slack
Service
::
MergeMessage
do
subject
{
Slack
Service
::
MergeMessage
.
new
(
args
)
}
let
(
:args
)
{
{
...
...
spec/models/project_services/slack_
messages/slack_
push_message_spec.rb
→
spec/models/project_services/slack_
service/
push_message_spec.rb
View file @
d86c0cda
require
'spec_helper'
describe
Slack
Messages
::
Slack
PushMessage
do
subject
{
Slack
Messages
::
Slack
PushMessage
.
new
(
args
)
}
describe
Slack
Service
::
PushMessage
do
subject
{
Slack
Service
::
PushMessage
.
new
(
args
)
}
let
(
:args
)
{
{
...
...
@@ -31,8 +31,8 @@ describe SlackMessages::SlackPushMessage do
)
expect
(
subject
.
attachments
).
to
eq
([
{
text:
"<url1|abcdefgh
i
>: message1 - author1
\n
"
\
"<url2|12345678
9
>: message2 - author2"
,
text:
"<url1|abcdefgh>: message1 - author1
\n
"
\
"<url2|12345678>: message2 - author2"
,
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