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
32cf2e5f
Commit
32cf2e5f
authored
Oct 05, 2016
by
David Eisner
Committed by
Airat Shigapov
Oct 20, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests for markdown HipChat notifications
parent
aa2406e0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
spec/models/project_services/hipchat_service_spec.rb
spec/models/project_services/hipchat_service_spec.rb
+6
-6
No files found.
spec/models/project_services/hipchat_service_spec.rb
View file @
32cf2e5f
...
...
@@ -135,7 +135,7 @@ describe HipchatService, models: true do
"<a href=
\"
#{
obj_attr
[
:url
]
}
\"
>issue #
#{
obj_attr
[
"iid"
]
}
</a> in "
\
"<a href=
\"
#{
project
.
web_url
}
\"
>
#{
project_name
}
</a>: "
\
"<b>Awesome issue</b>"
\
"<p
re><p><strong>please</strong> fix</p>
\n
</pre
>"
)
"<p
><strong>please</strong> fix</p
>"
)
end
end
...
...
@@ -159,7 +159,7 @@ describe HipchatService, models: true do
"<a href=
\"
#{
obj_attr
[
:url
]
}
\"
>merge request !
#{
obj_attr
[
"iid"
]
}
</a> in "
\
"<a href=
\"
#{
project
.
web_url
}
\"
>
#{
project_name
}
</a>: "
\
"<b>Awesome merge request</b>"
\
"<p
re><p><strong>please</strong> fix</p>
\n
</pre
>"
)
"<p
><strong>please</strong> fix</p
>"
)
end
end
...
...
@@ -190,7 +190,7 @@ describe HipchatService, models: true do
"<a href=
\"
#{
obj_attr
[
:url
]
}
\"
>commit
#{
commit_id
}
</a> in "
\
"<a href=
\"
#{
project
.
web_url
}
\"
>
#{
project_name
}
</a>: "
\
"
#{
title
}
"
\
"<p
re><p>a comment on a commit</p>
\n
</pre
>"
)
"<p
>a comment on a commit</p
>"
)
end
end
...
...
@@ -222,7 +222,7 @@ describe HipchatService, models: true do
"<a href=
\"
#{
obj_attr
[
:url
]
}
\"
>merge request !
#{
merge_id
}
</a> in "
\
"<a href=
\"
#{
project
.
web_url
}
\"
>
#{
project_name
}
</a>: "
\
"<b>
#{
title
}
</b>"
\
"<p
re><p>merge request <strong>note</strong></p>
\n
</pre
>"
)
"<p
>merge request <strong>note</strong></p
>"
)
end
end
...
...
@@ -247,7 +247,7 @@ describe HipchatService, models: true do
"<a href=
\"
#{
obj_attr
[
:url
]
}
\"
>issue #
#{
issue_id
}
</a> in "
\
"<a href=
\"
#{
project
.
web_url
}
\"
>
#{
project_name
}
</a>: "
\
"<b>
#{
title
}
</b>"
\
"<p
re><p>issue <strong>note</strong></p>
\n
</pre
>"
)
"<p
>issue <strong>note</strong></p
>"
)
end
end
...
...
@@ -275,7 +275,7 @@ describe HipchatService, models: true do
"<a href=
\"
#{
obj_attr
[
:url
]
}
\"
>snippet #
#{
snippet_id
}
</a> in "
\
"<a href=
\"
#{
project
.
web_url
}
\"
>
#{
project_name
}
</a>: "
\
"<b>
#{
title
}
</b>"
\
"<p
re><p>snippet note</p>
\n
</pre
>"
)
"<p
>snippet note</p
>"
)
end
end
end
...
...
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