summaryrefslogtreecommitdiff
path: root/features/steps/shared/snippet.rb
diff options
context:
space:
mode:
authorJan-Willem van der Meer <mail@jewilmeer.nl>2014-09-11 11:46:08 +0200
committerJan-Willem van der Meer <mail@jewilmeer.nl>2014-09-11 11:46:08 +0200
commitbf0de1a500e7a9aecc7c8bbf623ad39b75c6433b (patch)
tree382df65e2b17c91e03278d58bce8dce0129a6a7b /features/steps/shared/snippet.rb
parentb18d1c2786c2a385d6b797734a1afad7a01ddf35 (diff)
parent78ec7d9c9d156fe556d165c1c096bf5534d62d25 (diff)
downloadgitlab-ce-bf0de1a500e7a9aecc7c8bbf623ad39b75c6433b.tar.gz
Merge remote-tracking branch 'origin/master' into feature-oauth-refactoring
Diffstat (limited to 'features/steps/shared/snippet.rb')
-rw-r--r--features/steps/shared/snippet.rb23
1 files changed, 23 insertions, 0 deletions
diff --git a/features/steps/shared/snippet.rb b/features/steps/shared/snippet.rb
index 543e43196a5..c64299ae6f3 100644
--- a/features/steps/shared/snippet.rb
+++ b/features/steps/shared/snippet.rb
@@ -18,4 +18,27 @@ module SharedSnippet
private: true,
author: current_user)
end
+ And 'I have a public many lined snippet' do
+ create(:personal_snippet,
+ 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
end