Drop support for ruby 3.0

Also add Ubuntu 24.04 and drop 20.04 as 24.04 is needed for
ruby 3.1 without rvm so we should test it.
This commit is contained in:
Tom Hughes 2024-08-13 21:05:51 +01:00
parent 2fd2317bc6
commit 6789fc3081
15 changed files with 28 additions and 31 deletions

View file

@ -38,7 +38,7 @@ class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
click_on "Logout", :match => :first
end
def within_sidebar(&block)
within "#sidebar_content", &block
def within_sidebar(&)
within("#sidebar_content", &)
end
end

View file

@ -340,10 +340,10 @@ module ActiveSupport
Settings.merge!(saved_settings)
end
def with_user_account_deletion_delay(value, &block)
def with_user_account_deletion_delay(value, &)
freeze_time
with_settings(:user_account_deletion_delay => value, &block)
with_settings(:user_account_deletion_delay => value, &)
ensure
unfreeze_time
end