From c6377b190bed387796bb10ef15989ad4d7daf0ae Mon Sep 17 00:00:00 2001 From: Herwin Date: Wed, 6 Nov 2024 21:18:39 +0100 Subject: [PATCH] Update NATFIXME block in String concat specs We no longer crash, so use a NATFIXME block instead of disabling the test. --- spec/core/string/shared/concat.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/spec/core/string/shared/concat.rb b/spec/core/string/shared/concat.rb index 9bf593b66..ee19ab020 100644 --- a/spec/core/string/shared/concat.rb +++ b/spec/core/string/shared/concat.rb @@ -116,9 +116,10 @@ end describe "when self and the argument are in different ASCII-compatible encodings" do - # NATFIXME: Implement SHIFT_JIS - xit "uses self's encoding if both are ASCII-only" do - "abc".encode("UTF-8").send(@method, "123".encode("SHIFT_JIS")).encoding.should == Encoding::UTF_8 + it "uses self's encoding if both are ASCII-only" do + NATFIXME "it uses self's encoding if both are ASCII-only", exception: SpecFailedException do + "abc".encode("UTF-8").send(@method, "123".encode("SHIFT_JIS")).encoding.should == Encoding::UTF_8 + end end it "uses self's encoding if the argument is ASCII-only" do