Remove some more code added to support older versions

Also change back to run CI on ubuntu-latest which should work with all
Ruby versions supported now.
This commit is contained in:
Carlos Antonio da Silva
2023-10-13 10:50:18 -03:00
parent 72b421e571
commit 49e4a991cf
5 changed files with 9 additions and 46 deletions

View File

@@ -8,16 +8,4 @@ class StreamingController < ApplicationController
def index
render body: 'Index'
end
# Work around https://github.com/heartcombo/devise/issues/2332, which affects
# tests in Rails 4.x (and affects production in Rails >= 5)
def process(name)
super(name)
rescue ArgumentError => e
if e.message == 'uncaught throw :warden'
throw :warden
else
raise e
end
end
end

View File

@@ -23,22 +23,6 @@ end
if ActiveSupport.respond_to?(:test_order)
ActiveSupport.test_order = :random
end
class ActiveSupport::TestCase
if ActiveSupport.version < Gem::Version.new("5.0")
def assert_deprecated(match, deprecator)
super(match) do
# TODO: remove extra begin..end when dropping support for Ruby <= 2.4
begin
behavior = deprecator.behavior
deprecator.behavior = ActiveSupport::Deprecation.behavior
yield
ensure
deprecator.behavior = behavior
end
end
end
end
end
OmniAuth.config.logger = Logger.new('/dev/null')