From 4561a09c69b9769ebdbbf7cb9a3ed8f8cc03651b Mon Sep 17 00:00:00 2001 From: Charles Bushong Date: Fri, 5 Sep 2014 13:51:23 -0400 Subject: Cleaning for the hound --- features/steps/shared/snippet.rb | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'features/steps/shared/snippet.rb') 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 -- cgit v1.2.1