diff options
author | Mayra Cabrera <mcabrera@gitlab.com> | 2018-04-05 20:04:11 -0500 |
---|---|---|
committer | Mayra Cabrera <mcabrera@gitlab.com> | 2018-04-06 21:20:16 -0500 |
commit | a475411f4380ef4d0260940206e2553da3b2f3ee (patch) | |
tree | f9e67c7dc2476f57fdf30a2a9e55eb323759d0b6 /spec | |
parent | 2c6c61815edada16c4477c938209c24c647e1798 (diff) | |
download | gitlab-ce-a475411f4380ef4d0260940206e2553da3b2f3ee.tar.gz |
Fixes broken schema and minor changes
Diffstat (limited to 'spec')
-rw-r--r-- | spec/controllers/projects/deploy_tokens_controller_spec.rb | 1 | ||||
-rw-r--r-- | spec/lib/gitlab/auth_spec.rb | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/spec/controllers/projects/deploy_tokens_controller_spec.rb b/spec/controllers/projects/deploy_tokens_controller_spec.rb index f037aacfe8e..8de564a56af 100644 --- a/spec/controllers/projects/deploy_tokens_controller_spec.rb +++ b/spec/controllers/projects/deploy_tokens_controller_spec.rb @@ -11,6 +11,7 @@ describe Projects::DeployTokensController do describe 'POST #create' do let(:deploy_token_params) { attributes_for(:deploy_token) } + subject do post :create, namespace_id: project.namespace, diff --git a/spec/lib/gitlab/auth_spec.rb b/spec/lib/gitlab/auth_spec.rb index db517c25ef4..7be888d812f 100644 --- a/spec/lib/gitlab/auth_spec.rb +++ b/spec/lib/gitlab/auth_spec.rb @@ -264,7 +264,7 @@ describe Gitlab::Auth do let(:deploy_token) { create(:deploy_token, read_registry: false, projects: [project]) } it 'succeeds when project is present, token is valid and has read_repository as scope' do - abilities = %i(read_project download_code) + abilities = %i(download_code) auth_success = Gitlab::Auth::Result.new(deploy_token, project, :deploy_token, abilities) expect(gl_auth).to receive(:rate_limit!).with('ip', success: true, login: '') |