summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-04-19 07:39:53 -0400
committerKamil Trzcinski <ayufan@ayufan.eu>2016-04-19 07:39:53 -0400
commitd58d88fbd5dca6efdb95d5e07ad0b1c6f43bb565 (patch)
tree0b46139a9e35e5ba28c79fd548f01a77be21c12a
parent1a8fd9d7a5dfd43cc7e3f6b159f8852f722ba4e4 (diff)
downloadgitlab-ce-configurable-shared-runners-text.tar.gz
Use different markdownconfigurable-shared-runners-text
-rw-r--r--app/views/projects/runners/_shared_runners.html.haml2
-rw-r--r--spec/features/runners_spec.rb5
2 files changed, 4 insertions, 3 deletions
diff --git a/app/views/projects/runners/_shared_runners.html.haml b/app/views/projects/runners/_shared_runners.html.haml
index ec47ed79e55..b31fcfea763 100644
--- a/app/views/projects/runners/_shared_runners.html.haml
+++ b/app/views/projects/runners/_shared_runners.html.haml
@@ -2,7 +2,7 @@
.bs-callout.bs-callout-warning.shared-runners-description
- if shared_runners_text.present?
- = markdown(shared_runners_text)
+ = markdown(shared_runners_text, pipeline: 'plain_markdown')
- else
GitLab Runners do not offer secure isolation between projects that they do builds for. You are TRUSTING all GitLab users who can push code to project A, B or C to run shell scripts on the machine hosting runner X.
%hr
diff --git a/spec/features/runners_spec.rb b/spec/features/runners_spec.rb
index 789b06d7c67..8edeb8d18af 100644
--- a/spec/features/runners_spec.rb
+++ b/spec/features/runners_spec.rb
@@ -81,7 +81,8 @@ describe "Runners" do
end
describe "shared runners description" do
- let(:shared_runners_text) { 'custom shared runners description' }
+ let(:shared_runners_text) { 'custom **shared** runners description' }
+ let(:shared_runners_html) { 'custom shared runners description' }
before do
stub_application_setting(shared_runners_text: shared_runners_text)
@@ -91,7 +92,7 @@ describe "Runners" do
end
it "sees shared runners description" do
- expect(page.find(".shared-runners-description")).to have_content(shared_runners_text)
+ expect(page.find(".shared-runners-description")).to have_content(shared_runners_html)
end
end