diff options
Diffstat (limited to 'spec/controllers/concerns/checks_collaboration_spec.rb')
-rw-r--r-- | spec/controllers/concerns/checks_collaboration_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/concerns/checks_collaboration_spec.rb b/spec/controllers/concerns/checks_collaboration_spec.rb index be8beff5dd6..7fcd190d71a 100644 --- a/spec/controllers/concerns/checks_collaboration_spec.rb +++ b/spec/controllers/concerns/checks_collaboration_spec.rb @@ -33,7 +33,7 @@ RSpec.describe ChecksCollaboration do it 'is true when the user can push to a branch of the project' do fake_access = double('Gitlab::UserAccess') expect(fake_access).to receive(:can_push_to_branch?).with('a-branch').and_return(true) - expect(Gitlab::UserAccess).to receive(:new).with(user, project: project).and_return(fake_access) + expect(Gitlab::UserAccess).to receive(:new).with(user, container: project).and_return(fake_access) expect(helper.can_collaborate_with_project?(project, ref: 'a-branch')).to be_truthy end |