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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Fix/bump gems (#9259)
ulfertsb813e8b93f4e
diff --git a/Gemfile b/Gemfileindex b85c160658f..d7f2a858ff7 100644--- a/Gemfile+++ b/Gemfile@@ -95,7 +95,7 @@ gem 'semantic', '~> 1.6.1'# used for statistics on svn repositoriesgem 'svg-graph', '~> 2.2.0'-gem 'date_validator', '~> 0.10.0'+gem 'date_validator', '~> 0.11.0'gem 'ruby-duration', '~> 3.2.0'# provide compatible filesystem information for available storage@@ -267,9 +267,9 @@ endgroup :development, :test do# Require factory_bot for usage with openproject plugins testing- gem 'factory_bot', '~> 6.1.0'+ gem 'factory_bot', '~> 6.2.0'# require factory_bot_rails for convenience in core development- gem 'factory_bot_rails', '~> 6.1.0'+ gem 'factory_bot_rails', '~> 6.2.0'# Tracing and profiling gemsgem 'flamegraph', require: falsediff --git a/Gemfile.lock b/Gemfile.lockindex f637de0580c..6f0f7182f29 100644--- a/Gemfile.lock+++ b/Gemfile.lock@@ -278,7 +278,7 @@ GEMawesome_nested_set (3.4.0)activerecord (>= 4.0.0, < 7.0)aws-eventstream (1.1.1)- aws-partitions (1.451.0)+ aws-partitions (1.454.0)aws-sdk-core (3.114.0)aws-eventstream (~> 1, >= 1.0.2)aws-partitions (~> 1, >= 1.239.0)@@ -379,11 +379,11 @@ GEMdanger (> 2.0)database_cleaner (2.0.1)database_cleaner-active_record (~> 2.0.0)- database_cleaner-active_record (2.0.0)+ database_cleaner-active_record (2.0.1)activerecord (>= 5.a)database_cleaner-core (~> 2.0.0)database_cleaner-core (2.0.1)- date_validator (0.10.0)+ date_validator (0.11.0)activemodel (>= 3)activesupport (>= 3)debug_inspector (1.1.0)@@ -448,10 +448,10 @@ GEMeventmachine (1.2.7)eventmachine_httpserver (0.2.1)excon (0.81.0)- factory_bot (6.1.0)+ factory_bot (6.2.0)activesupport (>= 5.0.0)- factory_bot_rails (6.1.0)- factory_bot (~> 6.1.0)+ factory_bot_rails (6.2.0)+ factory_bot (~> 6.2.0)railties (>= 5.0.0)faker (2.17.0)i18n (>= 1.6, < 2)@@ -741,13 +741,13 @@ GEMrainbow (3.0.0)raindrops (0.19.1)rake (13.0.3)- rb-fsevent (0.10.4)+ rb-fsevent (0.11.0)rb-inotify (0.10.1)ffi (~> 1.0)rbtree3 (0.6.0)rchardet (1.8.0)rdoc (6.3.1)- recaptcha (5.7.0)+ recaptcha (5.8.0)jsonredcarpet (3.5.1)regexp_parser (2.1.1)@@ -856,11 +856,11 @@ GEMsentry-rails (4.4.0)railties (>= 5.0)sentry-ruby-core (~> 4.4.0.pre.beta)- sentry-ruby (4.4.1)+ sentry-ruby (4.4.2)concurrent-ruby (~> 1.0, >= 1.0.2)faraday (>= 1.0)- sentry-ruby-core (= 4.4.1)- sentry-ruby-core (4.4.1)+ sentry-ruby-core (= 4.4.2)+ sentry-ruby-core (4.4.2)concurrent-rubyfaradayshoulda-context (2.0.0)@@ -891,7 +891,8 @@ GEMffi (~> 1.1)table_print (1.5.7)temple (0.8.2)- terminal-table (1.6.0)+ terminal-table (3.0.1)+ unicode-display_width (>= 1.1.1, < 3)test-prof (1.0.3)thor (1.1.0)tilt (2.0.10)@@ -982,7 +983,7 @@ DEPENDENCIESdanger-brakemandashboards!database_cleaner (~> 2.0)- date_validator (~> 0.10.0)+ date_validator (~> 0.11.0)deckar01-task_list (~> 2.3.1)delayed_cron_job (~> 0.7.4)delayed_job_active_record (~> 4.1.5)@@ -990,8 +991,8 @@ DEPENDENCIESdoorkeeper (~> 5.5.0)equivalent-xml (~> 0.6)escape_utils (~> 1.0)- factory_bot (~> 6.1.0)- factory_bot_rails (~> 6.1.0)+ factory_bot (~> 6.2.0)+ factory_bot_rails (~> 6.2.0)fakerflamegraphfog-awsdiff --git a/modules/avatars/spec/factories/avatar_attachment_factory.rb b/modules/avatars/spec/factories/avatar_attachment_factory.rbindex 0606a53bdfb..3568750e686 100644--- a/modules/avatars/spec/factories/avatar_attachment_factory.rb+++ b/modules/avatars/spec/factories/avatar_attachment_factory.rb@@ -1,5 +1,5 @@FactoryBot.define do- factory :avatar_attachment, class: Attachment do+ factory :avatar_attachment, class: 'Attachment' doauthor factory: :usercontainer factory: :work_packagedescription { "avatar" }diff --git a/modules/bim/spec/factories/bcf_comment_factory.rb b/modules/bim/spec/factories/bcf_comment_factory.rbindex 54b03f3abbd..00914db45d5 100644--- a/modules/bim/spec/factories/bcf_comment_factory.rb+++ b/modules/bim/spec/factories/bcf_comment_factory.rb@@ -27,7 +27,7 @@#++FactoryBot.define do- factory :bcf_comment, class: ::Bim::Bcf::Comment do+ factory :bcf_comment, class: '::Bim::Bcf::Comment' doafter(:create) do |bcf_comment|bcf_comment.journal = create(:work_package_journal)bcf_comment.journal.update_attribute(:notes, 'Some BCF comment.')diff --git a/modules/bim/spec/factories/bcf_issue_factory.rb b/modules/bim/spec/factories/bcf_issue_factory.rbindex b6eba7ee6a7..0354aa4ae16 100644--- a/modules/bim/spec/factories/bcf_issue_factory.rb+++ b/modules/bim/spec/factories/bcf_issue_factory.rb@@ -29,7 +29,7 @@#++FactoryBot.define do- factory :bcf_issue, class: ::Bim::Bcf::Issue do+ factory :bcf_issue, class: '::Bim::Bcf::Issue' domarkup do<<-MARKUP<Markup xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">diff --git a/modules/bim/spec/factories/bcf_viewpoint_attachment_factory.rb b/modules/bim/spec/factories/bcf_viewpoint_attachment_factory.rbindex 3f004a61b97..84d091df055 100644--- a/modules/bim/spec/factories/bcf_viewpoint_attachment_factory.rb+++ b/modules/bim/spec/factories/bcf_viewpoint_attachment_factory.rb@@ -27,7 +27,7 @@#++FactoryBot.define do- factory :bcf_viewpoint_attachment, class: Attachment do+ factory :bcf_viewpoint_attachment, class: 'Attachment' dodescription { "snapshot" }filename { "snapshot.jpg" }content_type { "image/jpeg" }diff --git a/modules/bim/spec/factories/bcf_viewpoint_factory.rb b/modules/bim/spec/factories/bcf_viewpoint_factory.rbindex 82641e1691a..a1d5b15517a 100644--- a/modules/bim/spec/factories/bcf_viewpoint_factory.rb+++ b/modules/bim/spec/factories/bcf_viewpoint_factory.rb@@ -27,7 +27,7 @@#++FactoryBot.define do- factory :bcf_viewpoint, class: ::Bim::Bcf::Viewpoint do+ factory :bcf_viewpoint, class: '::Bim::Bcf::Viewpoint' donew_uuid = SecureRandom.uuiduuid { new_uuid }viewpoint_name { "full_viewpoint.bcfv" }diff --git a/modules/bim/spec/factories/ifc_model_factory.rb b/modules/bim/spec/factories/ifc_model_factory.rbindex a74247f5695..4a35dedf0e0 100644--- a/modules/bim/spec/factories/ifc_model_factory.rb+++ b/modules/bim/spec/factories/ifc_model_factory.rb@@ -27,7 +27,7 @@#++FactoryBot.define do- factory :ifc_model, class: ::Bim::IfcModels::IfcModel do+ factory :ifc_model, class: '::Bim::IfcModels::IfcModel' dosequence(:title) { |n| "Unconverted IFC model #{n}" }project factory: :projectuploader factory: :userdiff --git a/modules/bim/spec/factories/xml_viewpoint_factory.rb b/modules/bim/spec/factories/xml_viewpoint_factory.rbindex 6ff0f5ed04a..2d2fb2d2aa5 100644--- a/modules/bim/spec/factories/xml_viewpoint_factory.rb+++ b/modules/bim/spec/factories/xml_viewpoint_factory.rb@@ -27,7 +27,7 @@#++FactoryBot.define do- factory :xml_viewpoint, class: OpenStruct do+ factory :xml_viewpoint, class: 'OpenStruct' douuid { SecureRandom.uuid }viewpoint_name { "full_viewpoint.bcfv" }viewpoint dodiff --git a/modules/boards/spec/factories/board_factory.rb b/modules/boards/spec/factories/board_factory.rbindex ac2cb60a98f..7cba7e9e15c 100644--- a/modules/boards/spec/factories/board_factory.rb+++ b/modules/boards/spec/factories/board_factory.rb@@ -1,12 +1,12 @@FactoryBot.define do- factory :board_grid, class: Boards::Grid do+ factory :board_grid, class: 'Boards::Grid' doprojectname { 'My board' }row_count { 1 }column_count { 4 }end- factory :board_grid_with_query, class: Boards::Grid do+ factory :board_grid_with_query, class: 'Boards::Grid' doprojectsequence(:name) { |n| "Board with query #{n}" }row_count { 1 }@@ -36,7 +36,7 @@ FactoryBot.define doendend- factory :board_grid_with_queries, class: Boards::Grid do+ factory :board_grid_with_queries, class: 'Boards::Grid' doprojectsequence(:name) { |n| "Board with query #{n}" }row_count { 1 }@@ -66,7 +66,7 @@ FactoryBot.define doendend- factory :subproject_board, class: Boards::Grid do+ factory :subproject_board, class: 'Boards::Grid' doprojectname { 'My board' }row_count { 1 }diff --git a/modules/costs/spec/factories/journal/budget_journal_factory.rb b/modules/costs/spec/factories/journal/budget_journal_factory.rbindex 89a0b1e0f37..56f551919dc 100644--- a/modules/costs/spec/factories/journal/budget_journal_factory.rb+++ b/modules/costs/spec/factories/journal/budget_journal_factory.rb@@ -27,6 +27,6 @@#++FactoryBot.define do- factory :journal_budget_journal, class: Journal::BudgetJournal do+ factory :journal_budget_journal, class: 'Journal::BudgetJournal' doendenddiff --git a/modules/costs/spec/factories/journal/time_entry_journal_factory.rb b/modules/costs/spec/factories/journal/time_entry_journal_factory.rbindex 1ac979db492..c5238540ada 100644--- a/modules/costs/spec/factories/journal/time_entry_journal_factory.rb+++ b/modules/costs/spec/factories/journal/time_entry_journal_factory.rb@@ -27,6 +27,6 @@#++FactoryBot.define do- factory :journal_time_entry_journal, class: Journal::TimeEntryJournal do+ factory :journal_time_entry_journal, class: 'Journal::TimeEntryJournal' doendenddiff --git a/modules/dashboards/spec/factories/grid_factory.rb b/modules/dashboards/spec/factories/grid_factory.rbindex 413f20dae48..3e8b3d79efe 100644--- a/modules/dashboards/spec/factories/grid_factory.rb+++ b/modules/dashboards/spec/factories/grid_factory.rb@@ -1,5 +1,5 @@FactoryBot.define do- factory :dashboard, class: Grids::Dashboard do+ factory :dashboard, class: 'Grids::Dashboard' doprojectrow_count { 7 }column_count { 4 }@@ -16,7 +16,7 @@ FactoryBot.define doendend- factory :dashboard_with_table, class: Grids::Dashboard do+ factory :dashboard_with_table, class: 'Grids::Dashboard' doprojectrow_count { 7 }column_count { 4 }@@ -39,7 +39,7 @@ FactoryBot.define doendend- factory :dashboard_with_custom_text, class: Grids::Dashboard do+ factory :dashboard_with_custom_text, class: 'Grids::Dashboard' doprojectrow_count { 7 }column_count { 4 }diff --git a/modules/documents/spec/factories/journal/document_journal_factory.rb b/modules/documents/spec/factories/journal/document_journal_factory.rbindex cbd53e68ac9..e8539985b6f 100644--- a/modules/documents/spec/factories/journal/document_journal_factory.rb+++ b/modules/documents/spec/factories/journal/document_journal_factory.rb@@ -27,6 +27,6 @@#++FactoryBot.define do- factory :journal_document_journal, class: Journal::DocumentJournal do+ factory :journal_document_journal, class: 'Journal::DocumentJournal' doendenddiff --git a/modules/grids/spec/factories/grid_factory.rb b/modules/grids/spec/factories/grid_factory.rbindex 6e47ee51240..477191983ab 100644--- a/modules/grids/spec/factories/grid_factory.rb+++ b/modules/grids/spec/factories/grid_factory.rb@@ -1,5 +1,5 @@FactoryBot.define do- factory :grid, class: Grids::Grid do+ factory :grid, class: 'Grids::Grid' dorow_count { 5 }column_count { 5 }enddiff --git a/modules/grids/spec/factories/grid_widget_factory.rb b/modules/grids/spec/factories/grid_widget_factory.rbindex 8dfa0639df3..0e5dcedea21 100644--- a/modules/grids/spec/factories/grid_widget_factory.rb+++ b/modules/grids/spec/factories/grid_widget_factory.rb@@ -1,4 +1,4 @@FactoryBot.define do- factory :grid_widget, class: Grids::Widget do+ factory :grid_widget, class: 'Grids::Widget' doendenddiff --git a/modules/job_status/spec/factories/delayed_job_status_factory.rb b/modules/job_status/spec/factories/delayed_job_status_factory.rbindex 6e71942b2ea..d632b3da62c 100644--- a/modules/job_status/spec/factories/delayed_job_status_factory.rb+++ b/modules/job_status/spec/factories/delayed_job_status_factory.rb@@ -27,7 +27,7 @@#++FactoryBot.define do- factory :delayed_job_status, class: ::JobStatus::Status do+ factory :delayed_job_status, class: '::JobStatus::Status' dojob_id { SecureRandom.uuid }user { User.current }enddiff --git a/modules/ldap_groups/spec/factories/synchronized_filter_factory.rb b/modules/ldap_groups/spec/factories/synchronized_filter_factory.rbindex ac0cdcaeff7..fe8d76ba70a 100644--- a/modules/ldap_groups/spec/factories/synchronized_filter_factory.rb+++ b/modules/ldap_groups/spec/factories/synchronized_filter_factory.rb@@ -1,5 +1,5 @@FactoryBot.define do- factory :ldap_synchronized_filter, class: ::LdapGroups::SynchronizedFilter do+ factory :ldap_synchronized_filter, class: '::LdapGroups::SynchronizedFilter' doname { 'foo and bar' }filter_string { '(|(cn=foo)(cn=bar))' }group_name_attribute { 'cn' }diff --git a/modules/ldap_groups/spec/factories/synchronized_group_factory.rb b/modules/ldap_groups/spec/factories/synchronized_group_factory.rbindex 9cf745b0a1e..cd773296f44 100644--- a/modules/ldap_groups/spec/factories/synchronized_group_factory.rb+++ b/modules/ldap_groups/spec/factories/synchronized_group_factory.rb@@ -1,5 +1,5 @@FactoryBot.define do- factory :ldap_synchronized_group, class: ::LdapGroups::SynchronizedGroup do+ factory :ldap_synchronized_group, class: '::LdapGroups::SynchronizedGroup' dodn { 'cn=foo,ou=groups,dc=example,dc=com' }group factory: :groupauth_source factory: :ldap_auth_sourcediff --git a/modules/meeting/spec/factories/meeting_content_journal_factory.rb b/modules/meeting/spec/factories/meeting_content_journal_factory.rbindex 777fe6a495b..f601beae399 100644--- a/modules/meeting/spec/factories/meeting_content_journal_factory.rb+++ b/modules/meeting/spec/factories/meeting_content_journal_factory.rb@@ -27,6 +27,6 @@#++FactoryBot.define do- factory :journal_meeting_content_journal, class: Journal::MeetingContentJournal do+ factory :journal_meeting_content_journal, class: 'Journal::MeetingContentJournal' doendenddiff --git a/modules/meeting/spec/factories/meeting_journal_factory.rb b/modules/meeting/spec/factories/meeting_journal_factory.rbindex 5038a718359..915fdfe26a2 100644--- a/modules/meeting/spec/factories/meeting_journal_factory.rb+++ b/modules/meeting/spec/factories/meeting_journal_factory.rb@@ -31,7 +31,7 @@ FactoryBot.define docreated_at { Time.now }sequence(:version)- factory :meeting_content_journal, class: Journal do+ factory :meeting_content_journal, class: 'Journal' dojournable_type { 'MeetingContent' }activity_type { 'meetings' }enddiff --git a/modules/my_page/spec/factories/grid_factory.rb b/modules/my_page/spec/factories/grid_factory.rbindex 30e34461561..14fb7b9ac8d 100644--- a/modules/my_page/spec/factories/grid_factory.rb+++ b/modules/my_page/spec/factories/grid_factory.rb@@ -1,5 +1,5 @@FactoryBot.define do- factory :my_page, class: Grids::MyPage do+ factory :my_page, class: 'Grids::MyPage' douserrow_count { 7 }column_count { 4 }diff --git a/modules/overviews/spec/factories/grid_factory.rb b/modules/overviews/spec/factories/grid_factory.rbindex 850297912de..d48b998616b 100644--- a/modules/overviews/spec/factories/grid_factory.rb+++ b/modules/overviews/spec/factories/grid_factory.rb@@ -1,5 +1,5 @@FactoryBot.define do- factory :overview, class: Grids::Overview do+ factory :overview, class: 'Grids::Overview' doprojectrow_count { 7 }column_count { 4 }diff --git a/modules/pdf_export/spec/factories/export_card_configuration_factory.rb b/modules/pdf_export/spec/factories/export_card_configuration_factory.rbindex 1e3776451cf..c58218af820 100644--- a/modules/pdf_export/spec/factories/export_card_configuration_factory.rb+++ b/modules/pdf_export/spec/factories/export_card_configuration_factory.rb@@ -38,7 +38,7 @@ FactoryBot.define doorientation { "landscape" }end- factory :default_export_card_configuration, class: ExportCardConfiguration do+ factory :default_export_card_configuration, class: 'ExportCardConfiguration' doname { "Default" }description { "This is a description" }active { true }@@ -50,7 +50,7 @@ FactoryBot.define doorientation { "landscape" }end- factory :invalid_export_card_configuration, class: ExportCardConfiguration do+ factory :invalid_export_card_configuration, class: 'ExportCardConfiguration' doname { "Invalid" }description { "This is a description" }rows { "row1" }@@ -59,7 +59,7 @@ FactoryBot.define doorientation { "qwer" }end- factory :active_export_card_configuration, class: ExportCardConfiguration do+ factory :active_export_card_configuration, class: 'ExportCardConfiguration' doname { "Config active" }description { "This is a description" }active { true }@@ -71,7 +71,7 @@ FactoryBot.define doorientation { "landscape" }end- factory :inactive_export_card_configuration, class: ExportCardConfiguration do+ factory :inactive_export_card_configuration, class: 'ExportCardConfiguration' doname { "Config inactive" }description { "This is a description" }active { false }diff --git a/modules/two_factor_authentication/spec/factories/two_factor_authentication_device_factory.rb b/modules/two_factor_authentication/spec/factories/two_factor_authentication_device_factory.rbindex 53f245359cb..da49de55f7e 100644--- a/modules/two_factor_authentication/spec/factories/two_factor_authentication_device_factory.rb+++ b/modules/two_factor_authentication/spec/factories/two_factor_authentication_device_factory.rb@@ -1,5 +1,5 @@FactoryBot.define do- factory :two_factor_authentication_device_sms, class: ::TwoFactorAuthentication::Device::Sms do+ factory :two_factor_authentication_device_sms, class: '::TwoFactorAuthentication::Device::Sms' douserchannel { :sms }active { true }@@ -18,7 +18,7 @@ FactoryBot.define doendFactoryBot.define do- factory :two_factor_authentication_device_totp, class: ::TwoFactorAuthentication::Device::Totp do+ factory :two_factor_authentication_device_totp, class: '::TwoFactorAuthentication::Device::Totp' douserchannel { :totp }active { true }diff --git a/modules/webhooks/spec/factories/webhook_factory.rb b/modules/webhooks/spec/factories/webhook_factory.rbindex 483c7321cd7..6be542c3072 100644--- a/modules/webhooks/spec/factories/webhook_factory.rb+++ b/modules/webhooks/spec/factories/webhook_factory.rb@@ -27,7 +27,7 @@#++FactoryBot.define do- factory :webhook, class: Webhooks::Webhook do+ factory :webhook, class: 'Webhooks::Webhook' doname { "Example Webhook" }url { "http://example.net/webhook_receiver/42" }description { "This is an example webhook" }diff --git a/modules/webhooks/spec/factories/webhook_log_factory.rb b/modules/webhooks/spec/factories/webhook_log_factory.rbindex 04ec3769b1f..392a6a0b3e0 100644--- a/modules/webhooks/spec/factories/webhook_log_factory.rb+++ b/modules/webhooks/spec/factories/webhook_log_factory.rb@@ -27,7 +27,7 @@#++FactoryBot.define do- factory :webhook_log, class: Webhooks::Log do+ factory :webhook_log, class: 'Webhooks::Log' dowebhook factory: :webhookurl { "http://example.net/webhook_receiver/42" }event_name { 'foobar' }diff --git a/spec/factories/attribute_help_text_factory.rb b/spec/factories/attribute_help_text_factory.rbindex fc7eecdb550..53d63cec071 100644--- a/spec/factories/attribute_help_text_factory.rb+++ b/spec/factories/attribute_help_text_factory.rb@@ -1,11 +1,11 @@FactoryBot.define do- factory :work_package_help_text, class: AttributeHelpText::WorkPackage do+ factory :work_package_help_text, class: 'AttributeHelpText::WorkPackage' dotype { 'AttributeHelpText::WorkPackage' }help_text { 'Attribute help text' }attribute_name { 'status' }end- factory :project_help_text, class: AttributeHelpText::Project do+ factory :project_help_text, class: 'AttributeHelpText::Project' dotype { 'AttributeHelpText::Project' }help_text { 'Attribute help text' }attribute_name { 'status' }diff --git a/spec/factories/auth_source_factory.rb b/spec/factories/auth_source_factory.rbindex 54bf559c578..5828659eed2 100644--- a/spec/factories/auth_source_factory.rb+++ b/spec/factories/auth_source_factory.rb@@ -30,14 +30,14 @@ FactoryBot.define dofactory :auth_source doname { 'Test AuthSource' }end- factory :ldap_auth_source, class: LdapAuthSource do+ factory :ldap_auth_source, class: 'LdapAuthSource' doname { 'Test LDAP AuthSource' }host { '127.0.0.1' }port { 225 } # a reserved port, should not be in useattr_login { 'uid' }end- factory :dummy_auth_source, class: DummyAuthSource do+ factory :dummy_auth_source, class: 'DummyAuthSource' doname { 'DerpLAP' }endenddiff --git a/spec/factories/backup_factory.rb b/spec/factories/backup_factory.rbindex 6cf1545d432..c2196538626 100644--- a/spec/factories/backup_factory.rb+++ b/spec/factories/backup_factory.rb@@ -27,6 +27,6 @@#++FactoryBot.define do- factory :backup, class: Backup do+ factory :backup, class: 'Backup' doendenddiff --git a/spec/factories/color_factory.rb b/spec/factories/color_factory.rbindex 2676dc7d8fc..cced56b02b6 100644--- a/spec/factories/color_factory.rb+++ b/spec/factories/color_factory.rb@@ -27,7 +27,7 @@#++FactoryBot.define do- factory(:color, class: Color) do+ factory(:color, class: 'Color') dosequence(:name) { |n| "Color No. #{n}" }hexcode { ('#%0.6x' % rand(0xFFFFFF)).upcase }enddiff --git a/spec/factories/custom_field_factory.rb b/spec/factories/custom_field_factory.rbindex 37ac1bcca5b..6fa052ee195 100644--- a/spec/factories/custom_field_factory.rb+++ b/spec/factories/custom_field_factory.rb@@ -44,7 +44,7 @@ FactoryBot.define doRequestStore.clear!end- factory :project_custom_field, class: ProjectCustomField do+ factory :project_custom_field, class: 'ProjectCustomField' dosequence(:name) { |n| "Project custom field #{n}" }factory :list_project_custom_field do@@ -95,7 +95,7 @@ FactoryBot.define doendend- factory :user_custom_field, class: UserCustomField do+ factory :user_custom_field, class: 'UserCustomField' dosequence(:name) { |n| "User Custom Field #{n}" }type { 'UserCustomField' }@@ -136,7 +136,7 @@ FactoryBot.define doendend- factory :wp_custom_field, class: WorkPackageCustomField do+ factory :wp_custom_field, class: 'WorkPackageCustomField' dosequence(:name) { |n| "Work package custom field #{n}" }type { 'WorkPackageCustomField' }@@ -187,7 +187,7 @@ FactoryBot.define doendend- factory :issue_custom_field, class: WorkPackageCustomField do+ factory :issue_custom_field, class: 'WorkPackageCustomField' dosequence(:name) { |n| "Issue Custom Field #{n}" }factory :user_issue_custom_field do@@ -206,12 +206,12 @@ FactoryBot.define doendend- factory :time_entry_custom_field, class: TimeEntryCustomField do+ factory :time_entry_custom_field, class: 'TimeEntryCustomField' dofield_format { 'text' }sequence(:name) { |n| "TimeEntryCustomField #{n}" }end- factory :version_custom_field, class: VersionCustomField do+ factory :version_custom_field, class: 'VersionCustomField' dofield_format { 'text' }sequence(:name) { |n| "Version Custom Field #{n}" }diff --git a/spec/factories/custom_style_factory.rb b/spec/factories/custom_style_factory.rbindex e5b7f2ed1a6..ae921a78f67 100644--- a/spec/factories/custom_style_factory.rb+++ b/spec/factories/custom_style_factory.rb@@ -29,7 +29,7 @@FactoryBot.define dofactory :custom_style- factory :custom_style_with_logo, class: CustomStyle do+ factory :custom_style_with_logo, class: 'CustomStyle' dologo doRack::Test::UploadedFile.new(Rails.root.join('spec', 'support', 'custom_styles', 'logos', 'logo_image.png')@@ -37,7 +37,7 @@ FactoryBot.define doendend- factory :custom_style_with_favicon, class: CustomStyle do+ factory :custom_style_with_favicon, class: 'CustomStyle' dofavicon doRack::Test::UploadedFile.new(Rails.root.join('spec', 'support', 'custom_styles', 'favicons', 'favicon_image.png')@@ -45,7 +45,7 @@ FactoryBot.define doendend- factory :custom_style_with_touch_icon, class: CustomStyle do+ factory :custom_style_with_touch_icon, class: 'CustomStyle' dotouch_icon doRack::Test::UploadedFile.new(Rails.root.join('spec', 'support', 'custom_styles', 'touch_icons', 'touch_icon_image.png')diff --git a/spec/factories/design_color_factory.rb b/spec/factories/design_color_factory.rbindex 53838079672..e4dd0aaa6fc 100644--- a/spec/factories/design_color_factory.rb+++ b/spec/factories/design_color_factory.rb@@ -27,7 +27,7 @@#++FactoryBot.define do- factory(:design_color, class: DesignColor) do+ factory :design_color dohexcode { ('#%0.6x' % rand(0xFFFFFF)).upcase }endenddiff --git a/spec/factories/enumerations_factory.rb b/spec/factories/enumerations_factory.rbindex 303f4fc9a3e..be6fc94f1bb 100644--- a/spec/factories/enumerations_factory.rb+++ b/spec/factories/enumerations_factory.rb@@ -27,7 +27,7 @@#++FactoryBot.define do- factory :default_enumeration, class: Enumeration do+ factory :default_enumeration, class: 'Enumeration' doinitialize_with doEnumeration.where(type: 'Enumeration', is_default: true).first || Enumeration.newend@@ -38,7 +38,7 @@ FactoryBot.define doname { 'Default Enumeration' }end- factory :activity, class: TimeEntryActivity do+ factory :activity, class: 'TimeEntryActivity' dosequence(:name) { |i| "Activity #{i}" }active { true }is_default { false }@@ -51,7 +51,7 @@ FactoryBot.define doendend- factory :priority, class: IssuePriority do+ factory :priority, class: 'IssuePriority' dosequence(:name) { |i| "Priority #{i}" }active { true }diff --git a/spec/factories/file_factory.rb b/spec/factories/file_factory.rbindex abc6c9fb3b3..1ca1b7ec896 100644--- a/spec/factories/file_factory.rb+++ b/spec/factories/file_factory.rb@@ -29,7 +29,7 @@FactoryBot.define do### Yields fixture files.- factory :file, class: File do+ factory :file do# Skip the create callback to be able to use non-AR models. Otherwise FactoryBot will# try to call #save! on any created object.skip_create@@ -41,7 +41,7 @@ FactoryBot.define doendend- factory :uploaded_file, class: Rack::Multipart::UploadedFile do+ factory :uploaded_file, class: 'Rack::Multipart::UploadedFile' doskip_createname { 'test.txt' }diff --git a/spec/factories/group_factory.rb b/spec/factories/group_factory.rbindex 6b9c4f970f9..d2082b08019 100644--- a/spec/factories/group_factory.rb+++ b/spec/factories/group_factory.rb@@ -27,7 +27,7 @@#++FactoryBot.define do- factory :group, parent: :principal, class: Group do+ factory :group, parent: :principal, class: 'Group' do# groups have lastnames? hmm...sequence(:lastname) { |g| "Group #{g}" }diff --git a/spec/factories/journal/attachable_journal_factory.rb b/spec/factories/journal/attachable_journal_factory.rbindex 985a00aa90b..cbc9a7ac6f3 100644--- a/spec/factories/journal/attachable_journal_factory.rb+++ b/spec/factories/journal/attachable_journal_factory.rb@@ -27,6 +27,6 @@#++FactoryBot.define do- factory :journal_attachable_journal, class: Journal::AttachableJournal do+ factory :journal_attachable_journal, class: 'Journal::AttachableJournal' doendenddiff --git a/spec/factories/journal/attachment_journal_factory.rb b/spec/factories/journal/attachment_journal_factory.rbindex b3db61a3a9f..66134a6d7df 100644--- a/spec/factories/journal/attachment_journal_factory.rb+++ b/spec/factories/journal/attachment_journal_factory.rb@@ -27,6 +27,6 @@#++FactoryBot.define do- factory :journal_attachment_journal, class: Journal::AttachmentJournal do+ factory :journal_attachment_journal, class: 'Journal::AttachmentJournal' doendenddiff --git a/spec/factories/journal/changeset_journal_factory.rb b/spec/factories/journal/changeset_journal_factory.rbindex 5a571568c7a..649a256d689 100644--- a/spec/factories/journal/changeset_journal_factory.rb+++ b/spec/factories/journal/changeset_journal_factory.rb@@ -27,7 +27,7 @@#++FactoryBot.define do- factory :journal_changeset_journal, class: Journal::ChangesetJournal do+ factory :journal_changeset_journal, class: 'Journal::ChangesetJournal' dorevision { 5 }committed_on { Time.zone.today }enddiff --git a/spec/factories/journal/customizable_journal_factory.rb b/spec/factories/journal/customizable_journal_factory.rbindex ffee4c6e7a4..dcd4395b813 100644--- a/spec/factories/journal/customizable_journal_factory.rb+++ b/spec/factories/journal/customizable_journal_factory.rb@@ -27,6 +27,6 @@#++FactoryBot.define do- factory :journal_customizable_journal, class: Journal::CustomizableJournal do+ factory :journal_customizable_journal, class: 'Journal::CustomizableJournal' doendenddiff --git a/spec/factories/journal/message_journal_factory.rb b/spec/factories/journal/message_journal_factory.rbindex 5caa0ee89a7..4bf76d93250 100644--- a/spec/factories/journal/message_journal_factory.rb+++ b/spec/factories/journal/message_journal_factory.rb@@ -27,6 +27,6 @@#++FactoryBot.define do- factory :journal_message_journal, class: Journal::MessageJournal do+ factory :journal_message_journal, class: 'Journal::MessageJournal' doendenddiff --git a/spec/factories/journal/news_journal_facctory.rb b/spec/factories/journal/news_journal_facctory.rbindex ba9ea24b4fb..8a98dc4032e 100644--- a/spec/factories/journal/news_journal_facctory.rb+++ b/spec/factories/journal/news_journal_facctory.rb@@ -27,6 +27,6 @@#++FactoryBot.define do- factory :journal_news_journal, class: Journal::NewsJournal do+ factory :journal_news_journal, class: 'Journal::NewsJournal' doendenddiff --git a/spec/factories/journal/wiki_content_journal_factory.rb b/spec/factories/journal/wiki_content_journal_factory.rbindex 8578b622757..e6d711c7a92 100644--- a/spec/factories/journal/wiki_content_journal_factory.rb+++ b/spec/factories/journal/wiki_content_journal_factory.rb@@ -27,7 +27,7 @@#++FactoryBot.define do- factory :journal_wiki_content_journal, class: Journal::WikiContentJournal do+ factory :journal_wiki_content_journal, class: 'Journal::WikiContentJournal' dopage_id { 1 }endenddiff --git a/spec/factories/journal/work_package_journal_factory.rb b/spec/factories/journal/work_package_journal_factory.rbindex 893dcbcefca..cb06f11052c 100644--- a/spec/factories/journal/work_package_journal_factory.rb+++ b/spec/factories/journal/work_package_journal_factory.rb@@ -27,6 +27,6 @@#++FactoryBot.define do- factory :journal_work_package_journal, class: Journal::WorkPackageJournal do+ factory :journal_work_package_journal, class: 'Journal::WorkPackageJournal' doendenddiff --git a/spec/factories/journal_factory.rb b/spec/factories/journal_factory.rbindex d6c87fbc565..0d96f5fdd86 100644--- a/spec/factories/journal_factory.rb+++ b/spec/factories/journal_factory.rb@@ -38,7 +38,7 @@ FactoryBot.define dodata.saveend- factory :work_package_journal, class: Journal do+ factory :work_package_journal, class: 'Journal' dojournable_type { 'WorkPackage' }activity_type { 'work_packages' }transient do@@ -50,7 +50,7 @@ FactoryBot.define doendend- factory :wiki_content_journal, class: Journal do+ factory :wiki_content_journal, class: 'Journal' dojournable_type { 'WikiContent' }activity_type { 'wiki_edits' }@@ -59,7 +59,7 @@ FactoryBot.define doendend- factory :message_journal, class: Journal do+ factory :message_journal, class: 'Journal' dojournable_type { 'Message' }activity_type { 'messages' }diff --git a/spec/factories/menu_item_factory.rb b/spec/factories/menu_item_factory.rbindex 1541ad06311..0a5d4bc3d9c 100644--- a/spec/factories/menu_item_factory.rb+++ b/spec/factories/menu_item_factory.rb@@ -31,7 +31,7 @@ FactoryBot.define dosequence(:name) { |n| "Item No. #{n}" }sequence(:title) { |n| "Menu item Title #{n}" }- factory :wiki_menu_item, class: MenuItems::WikiMenuItem do+ factory :wiki_menu_item, class: 'MenuItems::WikiMenuItem' dowikisequence(:title) { |n| "Wiki Title #{n}" }@@ -50,7 +50,7 @@ FactoryBot.define doendend- factory :query_menu_item, class: MenuItems::QueryMenuItem do+ factory :query_menu_item, class: 'MenuItems::QueryMenuItem' doqueryname { query.normalized_name }diff --git a/spec/factories/oauth_application_factory.rb b/spec/factories/oauth_application_factory.rbindex 604d5ad45e2..d3a9aec1c9b 100644--- a/spec/factories/oauth_application_factory.rb+++ b/spec/factories/oauth_application_factory.rb@@ -27,7 +27,7 @@#++FactoryBot.define do- factory :oauth_application, class: ::Doorkeeper::Application do+ factory :oauth_application, class: '::Doorkeeper::Application' doname { 'My API application' }confidential { true }owner factory: :admindiff --git a/spec/factories/placeholder_user_factory.rb b/spec/factories/placeholder_user_factory.rbindex caf3afb0d83..2230b881ec7 100644--- a/spec/factories/placeholder_user_factory.rb+++ b/spec/factories/placeholder_user_factory.rb@@ -27,7 +27,7 @@#++FactoryBot.define do- factory :placeholder_user, parent: :principal, class: PlaceholderUser do+ factory :placeholder_user, parent: :principal, class: 'PlaceholderUser' dosequence(:name) { |n| "UX Designer #{n}" }endenddiff --git a/spec/factories/project_status.rb b/spec/factories/project_status.rbindex d8b07d63fd0..2b0cd727f61 100644--- a/spec/factories/project_status.rb+++ b/spec/factories/project_status.rb@@ -29,7 +29,7 @@#++FactoryBot.define do- factory :project_status, class: Projects::Status do+ factory :project_status, class: 'Projects::Status' doprojectsequence(:explanation) { |n| "Status explanation #{n}" }code { Projects::Status.codes[:on_track] }diff --git a/spec/factories/query_factory.rb b/spec/factories/query_factory.rbindex 1958811bc17..ae64e46e193 100644--- a/spec/factories/query_factory.rb+++ b/spec/factories/query_factory.rb@@ -27,7 +27,7 @@#++FactoryBot.define do- factory :query, class: Query do+ factory :query doprojectuser factory: :usersequence(:name) { |n| "Query #{n}" }diff --git a/spec/factories/repository_factory.rb b/spec/factories/repository_factory.rbindex 171ad3914a5..2cb3fe003df 100644--- a/spec/factories/repository_factory.rb+++ b/spec/factories/repository_factory.rb@@ -27,13 +27,13 @@#++FactoryBot.define do- factory :repository_subversion, class: Repository::Subversion do+ factory :repository_subversion, class: 'Repository::Subversion' dourl { 'file://tmp/svn_test_repo' }scm_type { 'existing' }projectend- factory :repository_git, class: Repository::Git do+ factory :repository_git, class: 'Repository::Git' dourl { 'file://tmp/git_test_repo' }scm_type { 'local' }path_encoding { 'UTF-8' }diff --git a/spec/factories/token_factory.rb b/spec/factories/token_factory.rbindex 02b2a7ed227..009751c9e60 100644--- a/spec/factories/token_factory.rb+++ b/spec/factories/token_factory.rb@@ -29,23 +29,23 @@require 'securerandom'FactoryBot.define do- factory :invitation_token, class: ::Token::Invitation do+ factory :invitation_token, class: '::Token::Invitation' douserend- factory :api_token, class: ::Token::API do+ factory :api_token, class: '::Token::API' douserend- factory :rss_token, class: ::Token::RSS do+ factory :rss_token, class: '::Token::RSS' douserend- factory :recovery_token, class: ::Token::Recovery do+ factory :recovery_token, class: '::Token::Recovery' douserend- factory :backup_token, class: ::Token::Backup do+ factory :backup_token, class: '::Token::Backup' douserafter(:build) do |token|diff --git a/spec/factories/type_factory.rb b/spec/factories/type_factory.rbindex d17fba6990d..8fcbd1bf4b8 100644--- a/spec/factories/type_factory.rb+++ b/spec/factories/type_factory.rb@@ -34,13 +34,13 @@ FactoryBot.define docreated_at { Time.now }updated_at { Time.now }- factory :type_with_workflow, class: Type do+ factory :type_with_workflow, class: 'Type' docallback(:after_build) do |t|t.workflows = [FactoryBot.build(:workflow_with_default_status)]endend- factory :type_with_relation_query_group, class: Type do+ factory :type_with_relation_query_group, class: 'Type' dotransient dorelation_filter { 'parent' }end@@ -55,7 +55,7 @@ FactoryBot.define doendend- factory :type_standard, class: ::Type do+ factory :type_standard, class: '::Type' doname { 'None' }is_standard { true }is_default { true }@@ -63,7 +63,7 @@ FactoryBot.define doupdated_at { Time.now }end- factory :type_bug, class: ::Type do+ factory :type_bug, class: '::Type' doname { 'Bug' }position { 1 }created_at { Time.now }diff --git a/spec/factories/user_factory.rb b/spec/factories/user_factory.rbindex 7d39a979460..a22608efb6b 100644--- a/spec/factories/user_factory.rb+++ b/spec/factories/user_factory.rb@@ -27,7 +27,7 @@#++FactoryBot.define do- factory :user, parent: :principal, class: User do+ factory :user, parent: :principal, class: 'User' dofirstname { 'Bob' }lastname { 'Bobbit' }sequence(:login) { |n| "bob#{n}" }@@ -74,7 +74,7 @@ FactoryBot.define dofirst_login { false if User.table_exists? and User.columns.map(&:name).include? 'first_login' }end- factory :deleted_user, class: DeletedUser+ factory :deleted_user, class: 'DeletedUser'factory :locked_user dofirstname { 'Locked' }@@ -91,11 +91,11 @@ FactoryBot.define doendend- factory :anonymous, class: AnonymousUser do+ factory :anonymous, class: 'AnonymousUser' doinitialize_with { User.anonymous }end- factory :system, class: SystemUser do+ factory :system, class: 'SystemUser' doinitialize_with { User.system }endenddiff --git a/spec/factories/user_password_factory.rb b/spec/factories/user_password_factory.rbindex 5e8f140f898..5076addd23b 100644--- a/spec/factories/user_password_factory.rb+++ b/spec/factories/user_password_factory.rb@@ -37,7 +37,7 @@ FactoryBot.define doendend- factory :legacy_sha1_password, class: UserPassword::SHA1 do+ factory :legacy_sha1_password, class: 'UserPassword::SHA1' doassociation :usertype { 'UserPassword::SHA1' }plain_password { 'mylegacypassword!' }diff --git a/spec/factories/user_session_factory.rb b/spec/factories/user_session_factory.rbindex f5baa5eb351..78c41306279 100644--- a/spec/factories/user_session_factory.rb+++ b/spec/factories/user_session_factory.rb@@ -27,8 +27,10 @@#++FactoryBot.define do- factory :user_session, class: ::Sessions::SqlBypass do+ factory :user_session, class: '::Sessions::SqlBypass' doto_create { |instance| instance.save }+ # AR::SessionStore::SqlStore#initialize requires an attribute+ initialize_with { new(**attributes) }sequence(:session_id) { |n| "session_#{n}" }transient dodiff --git a/spec/factories/work_packags_export_factory.rb b/spec/factories/work_packags_export_factory.rbindex 3f60d90d9d2..bdf466b28e2 100644--- a/spec/factories/work_packags_export_factory.rb+++ b/spec/factories/work_packags_export_factory.rb@@ -27,6 +27,6 @@#++FactoryBot.define do- factory :work_packages_export, class: WorkPackages::Export do+ factory :work_packages_export, class: 'WorkPackages::Export' doendend