spec/unicode_scripts_spec.rb in unicode-scripts-1.5.0 vs spec/unicode_scripts_spec.rb in unicode-scripts-1.6.0

- old
+ new

@@ -16,11 +16,16 @@ assert_equal ["Cyrillic", "Latin"], Unicode::Scripts.of("AС") end it "will call .script for every character" do mocked_method = MiniTest::Mock.new - mocked_method.expect :call, "first script", ["С", {}] - mocked_method.expect :call, "second script", ["A", {}] + 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", ["С", {}] + mocked_method.expect :call, "second script", ["A", {}] + end Unicode::Scripts.stub :script, mocked_method do Unicode::Scripts.of("СA") end mocked_method.verify end