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:
authorCharles Bushong <bushong1@gmail.com>2014-09-05 21:51:23 +0400
committerCharles Bushong <bushong1@gmail.com>2014-09-05 21:51:23 +0400
commit4561a09c69b9769ebdbbf7cb9a3ed8f8cc03651b (patch)
tree32fc725211d7b4b0dd7f0a9105b05aff1d8490d5 /features/steps/shared
parent858dbd084253d2920d7007babe0471469eb459e7 (diff)
Cleaning for the hound
Diffstat (limited to 'features/steps/shared')
-rw-r--r--features/steps/shared/snippet.rb21
1 files changed, 18 insertions, 3 deletions
diff --git a/features/steps/shared/snippet.rb b/features/steps/shared/snippet.rb
index 5f89a3ccf65..c64299ae6f3 100644
--- a/features/steps/shared/snippet.rb
+++ b/features/steps/shared/snippet.rb
@@ -20,9 +20,24 @@ module SharedSnippet
end
And 'I have a public many lined snippet' do
create(:personal_snippet,
- title: "Many lined snippet",
- content: "line one\nline two\nline three\nline four\nline five\nline six\nline seven\nline eight\nline nine\nline ten\nline eleven\nline twelve\nline thirteen\nline fourteen",
- file_name: "many_lined_snippet.rb",
+ title: 'Many lined snippet',
+ content: <<-END.gsub(/^\s+\|/, ''),
+ |line one
+ |line two
+ |line three
+ |line four
+ |line five
+ |line six
+ |line seven
+ |line eight
+ |line nine
+ |line ten
+ |line eleven
+ |line twelve
+ |line thirteen
+ |line fourteen
+ END
+ file_name: 'many_lined_snippet.rb',
private: true,
author: current_user)
end