spec/unicode_scripts_spec.rb in unicode-scripts-1.8.0 vs spec/unicode_scripts_spec.rb in unicode-scripts-1.9.0

- old
+ new

@@ -16,11 +16,11 @@ assert_equal ["Cyrillic", "Latin"], Unicode::Scripts.of("AС") end if RUBY_ENGINE != "jruby" it "will call .script for every character" do - mocked_method = MiniTest::Mock.new + mocked_method = Minitest::Mock.new if RUBY_VERSION >= "2.7" mocked_method.expect :call, "first script", ["С"] mocked_method.expect :call, "second script", ["A"] else mocked_method.expect :call, "first script", ["С", {}] @@ -112,10 +112,10 @@ assert_equal ["Cyrillic", "Latin"], Unicode::Scripts.script_extensions("AС") end if RUBY_VERSION >= "3.0" && RUBY_ENGINE != "jruby" it "will call .scripts for characters that have no explicit script extension" do - mocked_method = MiniTest::Mock.new + mocked_method = Minitest::Mock.new mocked_method.expect(:call, ["scripts"], ["A"], format: :long) Unicode::Scripts.stub :scripts, mocked_method do Unicode::Scripts.script_extensions("A")