Commit 595a092a authored by Thong Kuah's avatar Thong Kuah

Fix frozen string error

parent f0391c25
......@@ -13,7 +13,7 @@ describe 'User browses commits' do
it 'renders commit' do
visit project_commit_path(project, sample_commit.id)
expect(page).to have_content(sample_commit.message.gsub!(/\s+/, ' '))
expect(page).to have_content(sample_commit.message.gsub(/\s+/, ' '))
.and have_content("Showing #{sample_commit.files_changed_count} changed files")
.and have_content('Side-by-side')
end
......
......@@ -32,11 +32,12 @@ module ApiHelpers
end
if query_string
full_path << (path.index('?') ? '&' : '?')
full_path << query_string
end
separator = path.index('?') ? '&' : '?'
full_path
full_path + separator + query_string
else
full_path
end
end
def expect_paginated_array_response(items)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment