Just remove the prefix, feedback:

https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5094#note_12987385
This commit is contained in:
Lin Jen-Shin 2016-07-11 20:06:35 +08:00
parent 2b728ed3da
commit 1bfc2ed633
1 changed files with 2 additions and 1 deletions

View File

@ -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')