Skip to content

Commit

Permalink
Remove incorrect tests
Browse files Browse the repository at this point in the history
These tests were copied over from `main` in a1fbc46, however this
feature is only present in `main` which was causing the tests on
7-0-stable to fail.
  • Loading branch information
eileencodes committed May 9, 2022
1 parent 54bd582 commit 74beedc
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions railties/test/application/configuration_test.rb
Expand Up @@ -3573,32 +3573,6 @@ def new(app); self; end
end
end

test "ActionController::Base.raise_on_missing_callback_actions is false by default for production" do
app "production"

assert_equal false, ActionController::Base.raise_on_missing_callback_actions
end

test "ActionController::Base.raise_on_missing_callback_actions is false by default for upgraded apps" do
remove_from_config '.*config\.load_defaults.*\n'

app "development"

assert_equal false, ActionController::Base.raise_on_missing_callback_actions
end

test "ActionController::Base.raise_on_missing_callback_actions can be configured in the new framework defaults" do
remove_from_config '.*config\.load_defaults.*\n'

app_file "config/initializers/new_framework_defaults_6_2.rb", <<-RUBY
Rails.application.config.action_controller.raise_on_missing_callback_actions = true
RUBY

app "production"

assert_equal true, ActionController::Base.raise_on_missing_callback_actions
end

test "isolation_level is :thread by default" do
app "development"
assert_equal :thread, ActiveSupport::IsolatedExecutionState.isolation_level
Expand Down

0 comments on commit 74beedc

Please sign in to comment.