Skip to content

Commit

Permalink
Confirm the new string is actually mutable
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Sep 8, 2023
1 parent 373dc0b commit 17a07e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/ruby/core/string/uplus_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 17a07e4

Please sign in to comment.