diff options
author | Charles Bushong <bushong1@gmail.com> | 2014-09-05 21:51:23 +0400 |
---|---|---|
committer | Charles Bushong <bushong1@gmail.com> | 2014-09-05 21:51:23 +0400 |
commit | 4561a09c69b9769ebdbbf7cb9a3ed8f8cc03651b (patch) | |
tree | 32fc725211d7b4b0dd7f0a9105b05aff1d8490d5 /features/steps/shared | |
parent | 858dbd084253d2920d7007babe0471469eb459e7 (diff) |
Cleaning for the hound
Diffstat (limited to 'features/steps/shared')
-rw-r--r-- | features/steps/shared/snippet.rb | 21 |
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 |