Skip to content

Commit

Permalink
Resolve some test-only warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Earlopain committed Aug 9, 2024
1 parent 0cf4c70 commit f946fe9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/support/reset_rails_queue_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ module ActiveJob
module TestHelper
# Avoid calling #descendants because JRuby has trouble with it
# https://github.com/jruby/jruby/issues/6896
silence_redefinition_of_method :queue_adapter_changed_jobs
def queue_adapter_changed_jobs
[]
end

module TestQueueAdapter
module ClassMethods
silence_redefinition_of_method :queue_adapter
def queue_adapter # rubocop:disable Lint/UselessMethodDefinition
super
end
Expand Down
1 change: 1 addition & 0 deletions spec/support/selenium.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
module ActionDispatch
module SystemTesting
class Browser # :nodoc:
silence_redefinition_of_method :resolve_driver_path
def resolve_driver_path(namespace)
# The path method has been deprecated in 4.20.0
namespace::Service.driver_path = if Gem::Version.new(::Selenium::WebDriver::VERSION) >= Gem::Version.new("4.20.0")
Expand Down

0 comments on commit f946fe9

Please sign in to comment.