diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-19 12:08:42 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-19 12:08:42 +0300 |
commit | b76ae638462ab0f673e5915986070518dd3f9ad3 (patch) | |
tree | bdab0533383b52873be0ec0eb4d3c66598ff8b91 /spec/views/projects/empty.html.haml_spec.rb | |
parent | 434373eabe7b4be9593d18a585fb763f1e5f1a6f (diff) |
Add latest changes from gitlab-org/gitlab@14-2-stable-eev14.2.0-rc42
Diffstat (limited to 'spec/views/projects/empty.html.haml_spec.rb')
-rw-r--r-- | spec/views/projects/empty.html.haml_spec.rb | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/spec/views/projects/empty.html.haml_spec.rb b/spec/views/projects/empty.html.haml_spec.rb index 0fb0ae5ff29..70da4fc9e27 100644 --- a/spec/views/projects/empty.html.haml_spec.rb +++ b/spec/views/projects/empty.html.haml_spec.rb @@ -6,7 +6,10 @@ RSpec.describe 'projects/empty' do let_it_be(:user) { create(:user) } let_it_be(:project) { ProjectPresenter.new(create(:project, :empty_repo), current_user: user) } + let(:can_admin_project_member) { true } + before do + allow(view).to receive(:can_admin_project_member?).and_return(can_admin_project_member) allow(view).to receive(:experiment_enabled?).and_return(true) allow(view).to receive(:current_user).and_return(user) assign(:project, project) @@ -47,12 +50,6 @@ RSpec.describe 'projects/empty' do end context 'with invite button on empty projects' do - let(:can_import_members) { true } - - before do - allow(view).to receive(:can_import_members?).and_return(can_import_members) - end - it 'shows invite members info', :aggregate_failures do render @@ -68,7 +65,7 @@ RSpec.describe 'projects/empty' do end context 'when user does not have permissions to invite members' do - let(:can_import_members) { false } + let(:can_admin_project_member) { false } it 'does not show invite member info', :aggregate_failures do render |