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 rubocup errors

Behrokh Satarnejad897e27e2d69a
diff --git a/app/controllers/custom_styles_controller.rb b/app/controllers/custom_styles_controller.rb
index 1158109c376..984cb9094a6 100644
--- a/app/controllers/custom_styles_controller.rb
+++ b/app/controllers/custom_styles_controller.rb
@@ -52,7 +52,7 @@ class CustomStylesController < ApplicationController
@current_theme = @custom_style.theme
@theme_options = options_for_theme_select
if params[:tab].blank?
- redirect_to tab: 'interface'
+ redirect_to tab: "interface"
end
end
diff --git a/app/helpers/custom_styles_helper.rb b/app/helpers/custom_styles_helper.rb
index bc61421c8e3..86d1b6519c8 100644
--- a/app/helpers/custom_styles_helper.rb
+++ b/app/helpers/custom_styles_helper.rb
@@ -45,7 +45,7 @@ module CustomStylesHelper
name: "pdf_export_styles",
partial: "custom_styles/pdf_export_styles",
path: custom_style_path(tab: :pdf_export_styles),
- label: t(:'admin.custom_styles.tab_pdf_export_styles')
+ label: t(:"admin.custom_styles.tab_pdf_export_styles")
}
]
end
diff --git a/spec/controllers/custom_styles_controller_spec.rb b/spec/controllers/custom_styles_controller_spec.rb
index 025f45c6bdb..51f49e52371 100644
--- a/spec/controllers/custom_styles_controller_spec.rb
+++ b/spec/controllers/custom_styles_controller_spec.rb
@@ -41,7 +41,7 @@ RSpec.describe CustomStylesController do
context "when active token exists", with_ee: %i[define_custom_style] do
it "renders show" do
- expect(subject).to redirect_to action: :show, tab: 'interface'
+ expect(subject).to redirect_to action: :show, tab: "interface"
expect(response).to be_redirect
end
end
diff --git a/spec/features/custom_styles/tabs_spec.rb b/spec/features/custom_styles/tabs_spec.rb
index 0548b7fe97a..ba981d72be9 100644
--- a/spec/features/custom_styles/tabs_spec.rb
+++ b/spec/features/custom_styles/tabs_spec.rb
@@ -43,7 +43,7 @@ RSpec.describe "interface tab" do
end
context "with EE token", with_ee: %i[define_custom_style] do
- let(:custom_style) { create "custom_style_with_logo" }
+ let(:custom_style) { create (:custom_style_with_logo) }
before do
login_as(admin)