diff --git a/config/routes.rb b/config/routes.rb index 0f77ddfc..8b773d00 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -39,6 +39,6 @@ scope :frontend, controller: :frontends, defaults: { version: GoodJob::VERSION.tr(".", "-") } do get "modules/:version/:id", action: :module, as: :frontend_module, constraints: { format: 'js' } - get "static/:version/:id", action: :static, as: :frontend_static, constraints: { format: %w[css js svg] } + get "static/:version/:id", action: :static, as: :frontend_static end end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index c70c99f5..6575d198 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -39,6 +39,8 @@ mocks.verify_partial_doubles = true end + config.warnings = true + # This option will default to `:apply_to_host_groups` in RSpec 4 (and will # have no way to turn it off -- the option exists only for backwards # compatibility in RSpec 3). It causes shared context metadata to be diff --git a/spec/support/reset_rails_queue_adapter.rb b/spec/support/reset_rails_queue_adapter.rb index 1503af7a..a4a462ca 100644 --- a/spec/support/reset_rails_queue_adapter.rb +++ b/spec/support/reset_rails_queue_adapter.rb @@ -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 diff --git a/spec/support/selenium.rb b/spec/support/selenium.rb index 574244fc..2cef78c9 100644 --- a/spec/support/selenium.rb +++ b/spec/support/selenium.rb @@ -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")