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

Run `rubocop -a` on modules/bim

Aaron Contreras733962382744
diff --git a/modules/bim/db/migrate/20211011204301_add_column_conversion_status_to_ifc_model.rb b/modules/bim/db/migrate/20211011204301_add_column_conversion_status_to_ifc_model.rb
index ade6b02aa70..afe00f07d9a 100644
--- a/modules/bim/db/migrate/20211011204301_add_column_conversion_status_to_ifc_model.rb
+++ b/modules/bim/db/migrate/20211011204301_add_column_conversion_status_to_ifc_model.rb
@@ -30,6 +30,7 @@ class AddColumnConversionStatusToIfcModel < ActiveRecord::Migration[6.1]
class MigrationAttachment < ApplicationRecord
self.table_name = 'attachments'
end
+
# Note: rails 7.1 breaks the class' ancestor chain, and raises an error, when a class
# with an enum definition without a database field is being referenced.
# Re-defining the IfcModel class without the enum to avoid the issue.
diff --git a/modules/bim/spec/features/display_representations/switch_display_representations_spec.rb b/modules/bim/spec/features/display_representations/switch_display_representations_spec.rb
index c227b5ef0bc..25900df6917 100644
--- a/modules/bim/spec/features/display_representations/switch_display_representations_spec.rb
+++ b/modules/bim/spec/features/display_representations/switch_display_representations_spec.rb
@@ -30,9 +30,7 @@ require 'spec_helper'
require_relative '../../support/pages/ifc_models/show_default'
RSpec.describe 'Switching work package view',
- :js,
- with_ee: %i[conditional_highlighting],
- with_config: { edition: 'bim' } do
+ :js, with_config: { edition: 'bim' }, with_ee: %i[conditional_highlighting] do
let(:user) { create(:admin) }
let(:project) { create(:project, enabled_module_names: %i[bim work_package_tracking]) }
let(:wp_page) { Pages::IfcModels::ShowDefault.new(project) }