diff options
Diffstat (limited to 'spec/lib/sidebars/projects/menus/settings_menu_spec.rb')
-rw-r--r-- | spec/lib/sidebars/projects/menus/settings_menu_spec.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/spec/lib/sidebars/projects/menus/settings_menu_spec.rb b/spec/lib/sidebars/projects/menus/settings_menu_spec.rb index 81ca9670ac6..605cec8be5e 100644 --- a/spec/lib/sidebars/projects/menus/settings_menu_spec.rb +++ b/spec/lib/sidebars/projects/menus/settings_menu_spec.rb @@ -59,18 +59,6 @@ RSpec.describe Sidebars::Projects::Menus::SettingsMenu, feature_category: :navig let(:item_id) { :access_tokens } it_behaves_like 'access rights checks' - - describe 'when the user is not an admin but has manage_resource_access_tokens' do - before do - allow(Ability).to receive(:allowed?).and_call_original - allow(Ability).to receive(:allowed?).with(user, :admin_project, project).and_return(false) - allow(Ability).to receive(:allowed?).with(user, :manage_resource_access_tokens, project).and_return(true) - end - - it 'includes access token menu item' do - expect(subject.title).to eql('Access Tokens') - end - end end describe 'Repository' do |