summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorValery Sizov <valery@gitlab.com>2016-10-17 11:57:33 +0300
committerValery Sizov <valery@gitlab.com>2016-10-17 13:29:45 +0300
commit7df7a92b0a4a5d9731086177f0cb3f618578d122 (patch)
tree7deb812363d6c43c44c9f7320002fa9cd6d5a137 /features
parentaa76fa55f7ab2dfd1ecc3df5737d6b5f48ed5759 (diff)
downloadgitlab-ce-7df7a92b0a4a5d9731086177f0cb3f618578d122.tar.gz
[Great spinach fix] Replace gsub with delete
Diffstat (limited to 'features')
-rw-r--r--features/steps/project/commits/commits.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/features/steps/project/commits/commits.rb b/features/steps/project/commits/commits.rb
index c2a15c1a19a..244306e8464 100644
--- a/features/steps/project/commits/commits.rb
+++ b/features/steps/project/commits/commits.rb
@@ -21,7 +21,7 @@ class Spinach::Features::ProjectCommits < Spinach::FeatureSteps
expect(response_headers['Content-Type']).to have_content("application/atom+xml")
expect(body).to have_selector("title", text: "#{@project.name}:master commits")
expect(body).to have_selector("author email", text: commit.author_email)
- expect(body).to have_selector("entry summary", text: commit.description[0..10].gsub("\r", ""))
+ expect(body).to have_selector("entry summary", text: commit.description[0..10].delete("\r"))
end
step 'I click on tag link' do