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/bump gems (#9259)

ulfertsb813e8b93f4e
diff --git a/Gemfile b/Gemfile
index b85c160658f..d7f2a858ff7 100644
--- a/Gemfile
+++ b/Gemfile
@@ -95,7 +95,7 @@ gem 'semantic', '~> 1.6.1'
# used for statistics on svn repositories
gem '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 @@ end
group :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 gems
gem 'flamegraph', require: false
diff --git a/Gemfile.lock b/Gemfile.lock
index f637de0580c..6f0f7182f29 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -278,7 +278,7 @@ GEM
awesome_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 @@ GEM
danger (> 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 @@ GEM
eventmachine (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 @@ GEM
rainbow (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)
json
redcarpet (3.5.1)
regexp_parser (2.1.1)
@@ -856,11 +856,11 @@ GEM
sentry-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-ruby
faraday
shoulda-context (2.0.0)
@@ -891,7 +891,8 @@ GEM
ffi (~> 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 @@ DEPENDENCIES
danger-brakeman
dashboards!
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 @@ DEPENDENCIES
doorkeeper (~> 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)
faker
flamegraph
fog-aws
diff --git a/modules/avatars/spec/factories/avatar_attachment_factory.rb b/modules/avatars/spec/factories/avatar_attachment_factory.rb
index 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' do
author factory: :user
container factory: :work_package
description { "avatar" }
diff --git a/modules/bim/spec/factories/bcf_comment_factory.rb b/modules/bim/spec/factories/bcf_comment_factory.rb
index 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' do
after(: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.rb
index 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' do
markup 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.rb
index 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' do
description { "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.rb
index 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' do
new_uuid = SecureRandom.uuid
uuid { 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.rb
index 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' do
sequence(:title) { |n| "Unconverted IFC model #{n}" }
project factory: :project
uploader factory: :user
diff --git a/modules/bim/spec/factories/xml_viewpoint_factory.rb b/modules/bim/spec/factories/xml_viewpoint_factory.rb
index 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' do
uuid { SecureRandom.uuid }
viewpoint_name { "full_viewpoint.bcfv" }
viewpoint do
diff --git a/modules/boards/spec/factories/board_factory.rb b/modules/boards/spec/factories/board_factory.rb
index 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' do
project
name { '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' do
project
sequence(:name) { |n| "Board with query #{n}" }
row_count { 1 }
@@ -36,7 +36,7 @@ FactoryBot.define do
end
end
- factory :board_grid_with_queries, class: Boards::Grid do
+ factory :board_grid_with_queries, class: 'Boards::Grid' do
project
sequence(:name) { |n| "Board with query #{n}" }
row_count { 1 }
@@ -66,7 +66,7 @@ FactoryBot.define do
end
end
- factory :subproject_board, class: Boards::Grid do
+ factory :subproject_board, class: 'Boards::Grid' do
project
name { '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.rb
index 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' do
end
end
diff --git a/modules/costs/spec/factories/journal/time_entry_journal_factory.rb b/modules/costs/spec/factories/journal/time_entry_journal_factory.rb
index 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' do
end
end
diff --git a/modules/dashboards/spec/factories/grid_factory.rb b/modules/dashboards/spec/factories/grid_factory.rb
index 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' do
project
row_count { 7 }
column_count { 4 }
@@ -16,7 +16,7 @@ FactoryBot.define do
end
end
- factory :dashboard_with_table, class: Grids::Dashboard do
+ factory :dashboard_with_table, class: 'Grids::Dashboard' do
project
row_count { 7 }
column_count { 4 }
@@ -39,7 +39,7 @@ FactoryBot.define do
end
end
- factory :dashboard_with_custom_text, class: Grids::Dashboard do
+ factory :dashboard_with_custom_text, class: 'Grids::Dashboard' do
project
row_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.rb
index 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' do
end
end
diff --git a/modules/grids/spec/factories/grid_factory.rb b/modules/grids/spec/factories/grid_factory.rb
index 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' do
row_count { 5 }
column_count { 5 }
end
diff --git a/modules/grids/spec/factories/grid_widget_factory.rb b/modules/grids/spec/factories/grid_widget_factory.rb
index 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' do
end
end
diff --git a/modules/job_status/spec/factories/delayed_job_status_factory.rb b/modules/job_status/spec/factories/delayed_job_status_factory.rb
index 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' do
job_id { SecureRandom.uuid }
user { User.current }
end
diff --git a/modules/ldap_groups/spec/factories/synchronized_filter_factory.rb b/modules/ldap_groups/spec/factories/synchronized_filter_factory.rb
index 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' do
name { '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.rb
index 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' do
dn { 'cn=foo,ou=groups,dc=example,dc=com' }
group factory: :group
auth_source factory: :ldap_auth_source
diff --git a/modules/meeting/spec/factories/meeting_content_journal_factory.rb b/modules/meeting/spec/factories/meeting_content_journal_factory.rb
index 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' do
end
end
diff --git a/modules/meeting/spec/factories/meeting_journal_factory.rb b/modules/meeting/spec/factories/meeting_journal_factory.rb
index 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 do
created_at { Time.now }
sequence(:version)
- factory :meeting_content_journal, class: Journal do
+ factory :meeting_content_journal, class: 'Journal' do
journable_type { 'MeetingContent' }
activity_type { 'meetings' }
end
diff --git a/modules/my_page/spec/factories/grid_factory.rb b/modules/my_page/spec/factories/grid_factory.rb
index 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' do
user
row_count { 7 }
column_count { 4 }
diff --git a/modules/overviews/spec/factories/grid_factory.rb b/modules/overviews/spec/factories/grid_factory.rb
index 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' do
project
row_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.rb
index 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 do
orientation { "landscape" }
end
- factory :default_export_card_configuration, class: ExportCardConfiguration do
+ factory :default_export_card_configuration, class: 'ExportCardConfiguration' do
name { "Default" }
description { "This is a description" }
active { true }
@@ -50,7 +50,7 @@ FactoryBot.define do
orientation { "landscape" }
end
- factory :invalid_export_card_configuration, class: ExportCardConfiguration do
+ factory :invalid_export_card_configuration, class: 'ExportCardConfiguration' do
name { "Invalid" }
description { "This is a description" }
rows { "row1" }
@@ -59,7 +59,7 @@ FactoryBot.define do
orientation { "qwer" }
end
- factory :active_export_card_configuration, class: ExportCardConfiguration do
+ factory :active_export_card_configuration, class: 'ExportCardConfiguration' do
name { "Config active" }
description { "This is a description" }
active { true }
@@ -71,7 +71,7 @@ FactoryBot.define do
orientation { "landscape" }
end
- factory :inactive_export_card_configuration, class: ExportCardConfiguration do
+ factory :inactive_export_card_configuration, class: 'ExportCardConfiguration' do
name { "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.rb
index 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' do
user
channel { :sms }
active { true }
@@ -18,7 +18,7 @@ FactoryBot.define do
end
FactoryBot.define do
- factory :two_factor_authentication_device_totp, class: ::TwoFactorAuthentication::Device::Totp do
+ factory :two_factor_authentication_device_totp, class: '::TwoFactorAuthentication::Device::Totp' do
user
channel { :totp }
active { true }
diff --git a/modules/webhooks/spec/factories/webhook_factory.rb b/modules/webhooks/spec/factories/webhook_factory.rb
index 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' do
name { "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.rb
index 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' do
webhook factory: :webhook
url { "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.rb
index 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' do
type { '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' do
type { '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.rb
index 54bf559c578..5828659eed2 100644
--- a/spec/factories/auth_source_factory.rb
+++ b/spec/factories/auth_source_factory.rb
@@ -30,14 +30,14 @@ FactoryBot.define do
factory :auth_source do
name { 'Test AuthSource' }
end
- factory :ldap_auth_source, class: LdapAuthSource do
+ factory :ldap_auth_source, class: 'LdapAuthSource' do
name { 'Test LDAP AuthSource' }
host { '127.0.0.1' }
port { 225 } # a reserved port, should not be in use
attr_login { 'uid' }
end
- factory :dummy_auth_source, class: DummyAuthSource do
+ factory :dummy_auth_source, class: 'DummyAuthSource' do
name { 'DerpLAP' }
end
end
diff --git a/spec/factories/backup_factory.rb b/spec/factories/backup_factory.rb
index 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' do
end
end
diff --git a/spec/factories/color_factory.rb b/spec/factories/color_factory.rb
index 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') do
sequence(:name) { |n| "Color No. #{n}" }
hexcode { ('#%0.6x' % rand(0xFFFFFF)).upcase }
end
diff --git a/spec/factories/custom_field_factory.rb b/spec/factories/custom_field_factory.rb
index 37ac1bcca5b..6fa052ee195 100644
--- a/spec/factories/custom_field_factory.rb
+++ b/spec/factories/custom_field_factory.rb
@@ -44,7 +44,7 @@ FactoryBot.define do
RequestStore.clear!
end
- factory :project_custom_field, class: ProjectCustomField do
+ factory :project_custom_field, class: 'ProjectCustomField' do
sequence(:name) { |n| "Project custom field #{n}" }
factory :list_project_custom_field do
@@ -95,7 +95,7 @@ FactoryBot.define do
end
end
- factory :user_custom_field, class: UserCustomField do
+ factory :user_custom_field, class: 'UserCustomField' do
sequence(:name) { |n| "User Custom Field #{n}" }
type { 'UserCustomField' }
@@ -136,7 +136,7 @@ FactoryBot.define do
end
end
- factory :wp_custom_field, class: WorkPackageCustomField do
+ factory :wp_custom_field, class: 'WorkPackageCustomField' do
sequence(:name) { |n| "Work package custom field #{n}" }
type { 'WorkPackageCustomField' }
@@ -187,7 +187,7 @@ FactoryBot.define do
end
end
- factory :issue_custom_field, class: WorkPackageCustomField do
+ factory :issue_custom_field, class: 'WorkPackageCustomField' do
sequence(:name) { |n| "Issue Custom Field #{n}" }
factory :user_issue_custom_field do
@@ -206,12 +206,12 @@ FactoryBot.define do
end
end
- factory :time_entry_custom_field, class: TimeEntryCustomField do
+ factory :time_entry_custom_field, class: 'TimeEntryCustomField' do
field_format { 'text' }
sequence(:name) { |n| "TimeEntryCustomField #{n}" }
end
- factory :version_custom_field, class: VersionCustomField do
+ factory :version_custom_field, class: 'VersionCustomField' do
field_format { 'text' }
sequence(:name) { |n| "Version Custom Field #{n}" }
diff --git a/spec/factories/custom_style_factory.rb b/spec/factories/custom_style_factory.rb
index e5b7f2ed1a6..ae921a78f67 100644
--- a/spec/factories/custom_style_factory.rb
+++ b/spec/factories/custom_style_factory.rb
@@ -29,7 +29,7 @@
FactoryBot.define do
factory :custom_style
- factory :custom_style_with_logo, class: CustomStyle do
+ factory :custom_style_with_logo, class: 'CustomStyle' do
logo do
Rack::Test::UploadedFile.new(
Rails.root.join('spec', 'support', 'custom_styles', 'logos', 'logo_image.png')
@@ -37,7 +37,7 @@ FactoryBot.define do
end
end
- factory :custom_style_with_favicon, class: CustomStyle do
+ factory :custom_style_with_favicon, class: 'CustomStyle' do
favicon do
Rack::Test::UploadedFile.new(
Rails.root.join('spec', 'support', 'custom_styles', 'favicons', 'favicon_image.png')
@@ -45,7 +45,7 @@ FactoryBot.define do
end
end
- factory :custom_style_with_touch_icon, class: CustomStyle do
+ factory :custom_style_with_touch_icon, class: 'CustomStyle' do
touch_icon do
Rack::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.rb
index 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 do
hexcode { ('#%0.6x' % rand(0xFFFFFF)).upcase }
end
end
diff --git a/spec/factories/enumerations_factory.rb b/spec/factories/enumerations_factory.rb
index 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' do
initialize_with do
Enumeration.where(type: 'Enumeration', is_default: true).first || Enumeration.new
end
@@ -38,7 +38,7 @@ FactoryBot.define do
name { 'Default Enumeration' }
end
- factory :activity, class: TimeEntryActivity do
+ factory :activity, class: 'TimeEntryActivity' do
sequence(:name) { |i| "Activity #{i}" }
active { true }
is_default { false }
@@ -51,7 +51,7 @@ FactoryBot.define do
end
end
- factory :priority, class: IssuePriority do
+ factory :priority, class: 'IssuePriority' do
sequence(:name) { |i| "Priority #{i}" }
active { true }
diff --git a/spec/factories/file_factory.rb b/spec/factories/file_factory.rb
index 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 do
end
end
- factory :uploaded_file, class: Rack::Multipart::UploadedFile do
+ factory :uploaded_file, class: 'Rack::Multipart::UploadedFile' do
skip_create
name { 'test.txt' }
diff --git a/spec/factories/group_factory.rb b/spec/factories/group_factory.rb
index 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.rb
index 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' do
end
end
diff --git a/spec/factories/journal/attachment_journal_factory.rb b/spec/factories/journal/attachment_journal_factory.rb
index 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' do
end
end
diff --git a/spec/factories/journal/changeset_journal_factory.rb b/spec/factories/journal/changeset_journal_factory.rb
index 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' do
revision { 5 }
committed_on { Time.zone.today }
end
diff --git a/spec/factories/journal/customizable_journal_factory.rb b/spec/factories/journal/customizable_journal_factory.rb
index 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' do
end
end
diff --git a/spec/factories/journal/message_journal_factory.rb b/spec/factories/journal/message_journal_factory.rb
index 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' do
end
end
diff --git a/spec/factories/journal/news_journal_facctory.rb b/spec/factories/journal/news_journal_facctory.rb
index 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' do
end
end
diff --git a/spec/factories/journal/wiki_content_journal_factory.rb b/spec/factories/journal/wiki_content_journal_factory.rb
index 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' do
page_id { 1 }
end
end
diff --git a/spec/factories/journal/work_package_journal_factory.rb b/spec/factories/journal/work_package_journal_factory.rb
index 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' do
end
end
diff --git a/spec/factories/journal_factory.rb b/spec/factories/journal_factory.rb
index d6c87fbc565..0d96f5fdd86 100644
--- a/spec/factories/journal_factory.rb
+++ b/spec/factories/journal_factory.rb
@@ -38,7 +38,7 @@ FactoryBot.define do
data.save
end
- factory :work_package_journal, class: Journal do
+ factory :work_package_journal, class: 'Journal' do
journable_type { 'WorkPackage' }
activity_type { 'work_packages' }
transient do
@@ -50,7 +50,7 @@ FactoryBot.define do
end
end
- factory :wiki_content_journal, class: Journal do
+ factory :wiki_content_journal, class: 'Journal' do
journable_type { 'WikiContent' }
activity_type { 'wiki_edits' }
@@ -59,7 +59,7 @@ FactoryBot.define do
end
end
- factory :message_journal, class: Journal do
+ factory :message_journal, class: 'Journal' do
journable_type { 'Message' }
activity_type { 'messages' }
diff --git a/spec/factories/menu_item_factory.rb b/spec/factories/menu_item_factory.rb
index 1541ad06311..0a5d4bc3d9c 100644
--- a/spec/factories/menu_item_factory.rb
+++ b/spec/factories/menu_item_factory.rb
@@ -31,7 +31,7 @@ FactoryBot.define do
sequence(: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' do
wiki
sequence(:title) { |n| "Wiki Title #{n}" }
@@ -50,7 +50,7 @@ FactoryBot.define do
end
end
- factory :query_menu_item, class: MenuItems::QueryMenuItem do
+ factory :query_menu_item, class: 'MenuItems::QueryMenuItem' do
query
name { query.normalized_name }
diff --git a/spec/factories/oauth_application_factory.rb b/spec/factories/oauth_application_factory.rb
index 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' do
name { 'My API application' }
confidential { true }
owner factory: :admin
diff --git a/spec/factories/placeholder_user_factory.rb b/spec/factories/placeholder_user_factory.rb
index 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' do
sequence(:name) { |n| "UX Designer #{n}" }
end
end
diff --git a/spec/factories/project_status.rb b/spec/factories/project_status.rb
index 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' do
project
sequence(:explanation) { |n| "Status explanation #{n}" }
code { Projects::Status.codes[:on_track] }
diff --git a/spec/factories/query_factory.rb b/spec/factories/query_factory.rb
index 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 do
project
user factory: :user
sequence(:name) { |n| "Query #{n}" }
diff --git a/spec/factories/repository_factory.rb b/spec/factories/repository_factory.rb
index 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' do
url { 'file://tmp/svn_test_repo' }
scm_type { 'existing' }
project
end
- factory :repository_git, class: Repository::Git do
+ factory :repository_git, class: 'Repository::Git' do
url { '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.rb
index 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' do
user
end
- factory :api_token, class: ::Token::API do
+ factory :api_token, class: '::Token::API' do
user
end
- factory :rss_token, class: ::Token::RSS do
+ factory :rss_token, class: '::Token::RSS' do
user
end
- factory :recovery_token, class: ::Token::Recovery do
+ factory :recovery_token, class: '::Token::Recovery' do
user
end
- factory :backup_token, class: ::Token::Backup do
+ factory :backup_token, class: '::Token::Backup' do
user
after(:build) do |token|
diff --git a/spec/factories/type_factory.rb b/spec/factories/type_factory.rb
index d17fba6990d..8fcbd1bf4b8 100644
--- a/spec/factories/type_factory.rb
+++ b/spec/factories/type_factory.rb
@@ -34,13 +34,13 @@ FactoryBot.define do
created_at { Time.now }
updated_at { Time.now }
- factory :type_with_workflow, class: Type do
+ factory :type_with_workflow, class: 'Type' do
callback(:after_build) do |t|
t.workflows = [FactoryBot.build(:workflow_with_default_status)]
end
end
- factory :type_with_relation_query_group, class: Type do
+ factory :type_with_relation_query_group, class: 'Type' do
transient do
relation_filter { 'parent' }
end
@@ -55,7 +55,7 @@ FactoryBot.define do
end
end
- factory :type_standard, class: ::Type do
+ factory :type_standard, class: '::Type' do
name { 'None' }
is_standard { true }
is_default { true }
@@ -63,7 +63,7 @@ FactoryBot.define do
updated_at { Time.now }
end
- factory :type_bug, class: ::Type do
+ factory :type_bug, class: '::Type' do
name { 'Bug' }
position { 1 }
created_at { Time.now }
diff --git a/spec/factories/user_factory.rb b/spec/factories/user_factory.rb
index 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' do
firstname { 'Bob' }
lastname { 'Bobbit' }
sequence(:login) { |n| "bob#{n}" }
@@ -74,7 +74,7 @@ FactoryBot.define do
first_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 do
firstname { 'Locked' }
@@ -91,11 +91,11 @@ FactoryBot.define do
end
end
- factory :anonymous, class: AnonymousUser do
+ factory :anonymous, class: 'AnonymousUser' do
initialize_with { User.anonymous }
end
- factory :system, class: SystemUser do
+ factory :system, class: 'SystemUser' do
initialize_with { User.system }
end
end
diff --git a/spec/factories/user_password_factory.rb b/spec/factories/user_password_factory.rb
index 5e8f140f898..5076addd23b 100644
--- a/spec/factories/user_password_factory.rb
+++ b/spec/factories/user_password_factory.rb
@@ -37,7 +37,7 @@ FactoryBot.define do
end
end
- factory :legacy_sha1_password, class: UserPassword::SHA1 do
+ factory :legacy_sha1_password, class: 'UserPassword::SHA1' do
association :user
type { 'UserPassword::SHA1' }
plain_password { 'mylegacypassword!' }
diff --git a/spec/factories/user_session_factory.rb b/spec/factories/user_session_factory.rb
index 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' do
to_create { |instance| instance.save }
+ # AR::SessionStore::SqlStore#initialize requires an attribute
+ initialize_with { new(**attributes) }
sequence(:session_id) { |n| "session_#{n}" }
transient do
diff --git a/spec/factories/work_packags_export_factory.rb b/spec/factories/work_packags_export_factory.rb
index 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' do
end
end