From 16713eeb4f6d38ed1d1ed9298be44151250709e2 Mon Sep 17 00:00:00 2001 From: Charles Oliver Nutter Date: Fri, 8 Sep 2023 14:34:37 +0200 Subject: [PATCH] Confirm the new string is actually mutable --- core/string/uplus_spec.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/string/uplus_spec.rb b/core/string/uplus_spec.rb index 038b283c90..65b66260dd 100644 --- a/core/string/uplus_spec.rb +++ b/core/string/uplus_spec.rb @@ -7,6 +7,9 @@ output.should_not.frozen? output.should == 'foo' + + output << 'bar' + output.should == 'foobar' end it 'returns self if the String is not frozen' do