Commit 1bfc2ed6 authored by Lin Jen-Shin's avatar Lin Jen-Shin
parent 2b728ed3
......@@ -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')
......
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