Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Fix rubocop issues

Klaus Zanders74d9b85bd7fa
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb
index 94bfacfbe49..25c933d2822 100644
--- a/app/controllers/users_controller.rb
+++ b/app/controllers/users_controller.rb
@@ -76,7 +76,6 @@ class UsersController < ApplicationController
@groups = @user.groups.visible
-
if can_show_user?
@events = events
render layout: (can_manage_or_create_users? ? "admin" : "no_menu")
diff --git a/spec/features/users/show_spec.rb b/spec/features/users/show_spec.rb
index 4bc5fa21771..690e85208ba 100644
--- a/spec/features/users/show_spec.rb
+++ b/spec/features/users/show_spec.rb
@@ -64,7 +64,7 @@ RSpec.describe "index users", :js, :with_cuprite do
it "does not show the group" do
visit user_path(user)
- expect(page).not_to have_text group.name
+ expect(page).to have_no_text group.name
end
end
end