Fix rubocop linting

pull/10061/head
Benjamin Bädorf 3 years ago
parent fd0cf99f0b
commit 6a522318fa
No known key found for this signature in database
GPG Key ID: 069CA2D117AB5CCF
  1. 5
      modules/team_planner/spec/features/team_planner_menu_spec.rb
  2. 2
      modules/team_planner/spec/support/pages/team_planner.rb

@ -29,7 +29,7 @@
#++ #++
require 'spec_helper' require 'spec_helper'
require_relative '../../../../spec/support/components/work_packages/query_menu.rb' require_relative '../../../../spec/support/components/work_packages/query_menu'
describe 'Team planner sidemenu', type: :feature, js: true do describe 'Team planner sidemenu', type: :feature, js: true do
shared_let(:project) do shared_let(:project) do
@ -56,7 +56,7 @@ describe 'Team planner sidemenu', type: :feature, js: true do
click_link 'Team planner' click_link 'Team planner'
end end
query_menu.expect_menu_entry_not_visible('Create new planner') query_menu.expect_menu_entry_not_visible('Create new planner')
end end
end end
@ -70,7 +70,6 @@ describe 'Team planner sidemenu', type: :feature, js: true do
] ]
end end
current_user { user_with_rights } current_user { user_with_rights }
it 'hides the create team planner option if you do not have rights' do it 'hides the create team planner option if you do not have rights' do

@ -177,7 +177,7 @@ module Pages
end end
def expect_no_menu_item(name) def expect_no_menu_item(name)
expect(page).to_not have_selector('.op-sidemenu--item-title', text: name) expect(page).not_to have_selector('.op-sidemenu--item-title', text: name)
end end
end end
end end

Loading…
Cancel
Save