mirror of https://github.com/rails/rails
18 lines
359 B
Ruby
18 lines
359 B
Ruby
# frozen_string_literal: true
|
|
|
|
require_relative "abstract_unit"
|
|
|
|
class PerThreadRegistryTest < ActiveSupport::TestCase
|
|
class TestRegistry
|
|
ActiveSupport::Deprecation.silence do
|
|
extend ActiveSupport::PerThreadRegistry
|
|
end
|
|
|
|
def foo(x:); x; end
|
|
end
|
|
|
|
def test_method_missing_with_kwargs
|
|
assert_equal 1, TestRegistry.foo(x: 1)
|
|
end
|
|
end
|