mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
16 lines
307 B
Ruby
16 lines
307 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
require_relative "abstract_unit"
|
||
|
|
||
|
class PerThreadRegistryTest < ActiveSupport::TestCase
|
||
|
class TestRegistry
|
||
|
extend ActiveSupport::PerThreadRegistry
|
||
|
|
||
|
def foo(x:); x; end
|
||
|
end
|
||
|
|
||
|
def test_method_missing_with_kwargs
|
||
|
assert_equal 1, TestRegistry.foo(x: 1)
|
||
|
end
|
||
|
end
|