diff options
Diffstat (limited to 'spec/requests/api/terraform/modules/v1')
-rw-r--r-- | spec/requests/api/terraform/modules/v1/packages_spec.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/requests/api/terraform/modules/v1/packages_spec.rb b/spec/requests/api/terraform/modules/v1/packages_spec.rb index dff44a45de4..ae61017f5bb 100644 --- a/spec/requests/api/terraform/modules/v1/packages_spec.rb +++ b/spec/requests/api/terraform/modules/v1/packages_spec.rb @@ -585,9 +585,10 @@ RSpec.describe API::Terraform::Modules::V1::Packages do let(:headers) { user_headers.merge(workhorse_headers) } let(:snowplow_gitlab_standard_context) { { project: project, namespace: project.namespace, user: snowplow_user } } let(:snowplow_user) do - if token_type == :deploy_token + case token_type + when :deploy_token deploy_token - elsif token_type == :job_token + when :job_token job.user else user |