diff options
author | Valery Sizov <valery@gitlab.com> | 2016-10-17 11:57:33 +0300 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2016-10-17 13:29:45 +0300 |
commit | 7df7a92b0a4a5d9731086177f0cb3f618578d122 (patch) | |
tree | 7deb812363d6c43c44c9f7320002fa9cd6d5a137 | |
parent | aa76fa55f7ab2dfd1ecc3df5737d6b5f48ed5759 (diff) | |
download | gitlab-ce-7df7a92b0a4a5d9731086177f0cb3f618578d122.tar.gz |
[Great spinach fix] Replace gsub with delete
-rw-r--r-- | features/steps/project/commits/commits.rb | 2 |
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 |