diff options
author | Jasper Maes <jaspermaes.jm@gmail.com> | 2018-06-06 07:22:54 +0200 |
---|---|---|
committer | Jasper Maes <jaspermaes.jm@gmail.com> | 2018-06-06 07:28:44 +0200 |
commit | 078a5dcd1b285fdb1f2ec029054da389b9e1203f (patch) | |
tree | ec658f700355a7e38f46e3896806a1a16f3d1713 /spec/requests/api | |
parent | 414af1213e4be015706cc0702e571bd48c68cd3a (diff) | |
download | gitlab-ce-078a5dcd1b285fdb1f2ec029054da389b9e1203f.tar.gz |
Rails 5 fix unknown keywords: changes, key_id, project, gl_repository, action, secret_token, protocol
Diffstat (limited to 'spec/requests/api')
-rw-r--r-- | spec/requests/api/internal_spec.rb | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/spec/requests/api/internal_spec.rb b/spec/requests/api/internal_spec.rb index 5dc3ddd4b36..bc32372d3a9 100644 --- a/spec/requests/api/internal_spec.rb +++ b/spec/requests/api/internal_spec.rb @@ -835,8 +835,7 @@ describe API::Internal do end def push(key, project, protocol = 'ssh', env: nil) - post( - api("/internal/allowed"), + params = { changes: 'd14d6c0abdd253381df51a723d58691b2ee1ab08 570e7b2abdd848b95f2f578043fc23bd6f6fd24d refs/heads/master', key_id: key.id, project: project.full_path, @@ -845,7 +844,19 @@ describe API::Internal do secret_token: secret_token, protocol: protocol, env: env - ) + } + + if Gitlab.rails5? + post( + api("/internal/allowed"), + params: params + ) + else + post( + api("/internal/allowed"), + params + ) + end end def archive(key, project) |