1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
This commit is contained in:
Benoit Daloze 2021-10-05 19:41:44 +02:00
parent afcbb501ac
commit b9f34062f0
28 changed files with 692 additions and 31 deletions

View file

@ -1,7 +1,10 @@
require_relative '../../spec_helper'
require_relative 'fixtures/classes'
require_relative 'shared/strip'
describe "String#rstrip" do
it_behaves_like :string_strip, :rstrip
it "returns a copy of self with trailing whitespace removed" do
" hello ".rstrip.should == " hello"
" hello world ".rstrip.should == " hello world"