-
Notifications
You must be signed in to change notification settings - Fork 1k
Fixes #37825 - Upgrade Rails to 7.0 #10299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,4 +10,8 @@ def safe_value | |
| def hidden_value | ||
| HIDDEN_VALUE | ||
| end | ||
|
|
||
| def hidden_value? | ||
| attributes['hidden_value'] | ||
| end | ||
| end | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1 @@ | ||
| --- | ||
| - message: Initialization autoloaded the constants | ||
| - message: DatabaseConfig#config will be removed in 6.2.0 in favor of DatabaseConfigurations#configuration_hash which returns a hash with symbol keys |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,7 +10,8 @@ | |
| # test suite. You never need to work with it otherwise. Remember that | ||
| # your test database is "scratch space" for the test suite and is wiped | ||
| # and recreated between test runs. Don't rely on the data there! | ||
| config.cache_classes = true | ||
| # Disable reloading for integration tests | ||
| config.cache_classes = ARGV.grep(/test\/integration/).any? | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't this be the other way around? Only enable it when it's Also, https://github.com/rails/spring?tab=readme-ov-file#enable-reloading notes it needs to be Another note: https://github.com/rails/spring?tab=readme-ov-file#temporarily-disabling-spring says:
|
||
|
|
||
| config.eager_load = true | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,4 @@ | ||
| require 'test_helper' | ||
| require 'foreman/cast' | ||
|
|
||
| class CastTest < ActiveSupport::TestCase | ||
| include Foreman::Cast | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -92,7 +92,7 @@ class HasManyCommonTest < ActiveSupport::TestCase | |
|
|
||
| ## Test name methods resolve for Plugin AR objects | ||
| class ::FakePlugin; end | ||
| class ::FakePlugin::FakeModel; end | ||
| class ::FakePlugin::FakeModel < ApplicationRecord; end | ||
|
Comment on lines
94
to
+95
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this even be module FakePlugin
class FakeModel < ApplicationRecord
end
end |
||
|
|
||
| test "should return plugin associations" do | ||
| Host::Managed.class_eval do | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,3 @@ | ||
| require 'foreman/access_control' | ||
|
|
||
| module AccessPermissionsTestBase | ||
| extend ActiveSupport::Concern | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.