Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAirat Shigapov <contact@airatshigapov.com>2016-10-19 22:51:15 +0300
committerAirat Shigapov <contact@airatshigapov.com>2016-10-20 15:44:34 +0300
commit257d15a67007f7c8750ca6d00a7c13f8e8a9f974 (patch)
treea2a6852715955e335e7fd4ce4feb1c657e047b07 /spec/models
parent7b90680c2dd78d88d747fff545d69b1908ced7ae (diff)
Return truncation for notification descriptions, fix minor bugs with rendering
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/project_services/hipchat_service_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/models/project_services/hipchat_service_spec.rb b/spec/models/project_services/hipchat_service_spec.rb
index 1029b6d2459..2da3a9cb09f 100644
--- a/spec/models/project_services/hipchat_service_spec.rb
+++ b/spec/models/project_services/hipchat_service_spec.rb
@@ -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><strong>please</strong> fix</p>")
+ "<pre><strong>please</strong> fix</pre>")
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><strong>please</strong> fix</p>")
+ "<pre><strong>please</strong> fix</pre>")
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>a comment on a commit</p>")
+ "<pre>a comment on a commit</pre>")
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>merge request <strong>note</strong></p>")
+ "<pre>merge request <strong>note</strong></pre>")
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>issue <strong>note</strong></p>")
+ "<pre>issue <strong>note</strong></pre>")
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>snippet note</p>")
+ "<pre>snippet note</pre>")
end
end
end