summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-07-11 20:06:35 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-07-11 20:06:35 +0800
commit1bfc2ed633b2086b547727acc4aa0abaaea7731f (patch)
tree5ac85a8f54bd28cd2128d6429f25a8cd5748036c /features
parent2b728ed3dabcced23370b39ce256a03cf30fe86d (diff)
downloadgitlab-ce-1bfc2ed633b2086b547727acc4aa0abaaea7731f.tar.gz
Just remove the prefix, feedback:send-entry-via-Gitlab-Workhorse-Send-Data
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5094#note_12987385
Diffstat (limited to 'features')
-rw-r--r--features/steps/project/builds/artifacts.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/features/steps/project/builds/artifacts.rb b/features/steps/project/builds/artifacts.rb
index 4bc74688132..b4a32ed2e38 100644
--- a/features/steps/project/builds/artifacts.rb
+++ b/features/steps/project/builds/artifacts.rb
@@ -72,7 +72,8 @@ class Spinach::Features::ProjectBuildsArtifacts < Spinach::FeatureSteps
expect(send_data).to start_with('artifacts-entry:')
- params = JSON.parse(Base64.urlsafe_decode64(send_data[/(?<=:)(.+)/]))
+ base64_params = send_data.sub(/\Aartifacts\-entry:/, '')
+ params = JSON.parse(Base64.urlsafe_decode64(base64_params))
expect(params.keys).to eq(['Archive', 'Entry'])
expect(params['Archive']).to end_with('build_artifacts.zip')