diff --git a/test/stdlib/Regexp_test.rb b/test/stdlib/Regexp_test.rb index 80b9f5cd8..52a4ad947 100644 --- a/test/stdlib/Regexp_test.rb +++ b/test/stdlib/Regexp_test.rb @@ -47,7 +47,7 @@ def test_compile assert_send_type '(string) -> Regexp', Regexp, :compile, pattern - with_int(Regexp::IGNORECASE).and with_string('i'), true, false, nil do |options| + with_int(Regexp::IGNORECASE, object: true).and with_string('i'), true, false, nil do |options| assert_send_type '(string, int | string | bool | nil) -> Regexp', Regexp, :compile, pattern, options @@ -118,7 +118,7 @@ def test_linear_time? Regexp, :linear_time?, regexp, timeout: timeout end - with_int(Regexp::IGNORECASE).and(with_string('i'), true, false, nil) do |options| + with_int(Regexp::IGNORECASE, object: true).and(with_string('i'), true, false, nil) do |options| assert_send_type '(string, int | string | bool | nil) -> bool', Regexp, :linear_time?, regexp, options @@ -229,7 +229,7 @@ def test_new assert_send_type '(string) -> Regexp', Regexp, :new, pattern - with_int(Regexp::IGNORECASE).and with_string('i'), true, false, nil do |options| + with_int(Regexp::IGNORECASE, object: true).and with_string('i'), true, false, nil do |options| assert_send_type '(string, int | string | bool | nil) -> Regexp', Regexp, :new, pattern, options