aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/string/rstrip_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Make String#rstrip{,!} raise Encoding::CompatibilityError for broken coderangeJeremy Evans2022-11-241-7/+21
| | | | | | | | | | | | | | | | It's questionable whether we want to allow rstrip to work for strings where the broken coderange occurs before the trailing whitespace and not after, but this approach is probably simpler, and I don't think users should expect string operations like rstrip to work on broken strings. In some cases, this changes rstrip to raise Encoding::CompatibilityError instead of ArgumentError. However, as the problem is related to an encoding issue in the receiver, and due not due to an issue with an argument, I think Encoding::CompatibilityError is the more appropriate error. Fixes [Bug #18931]
* Update to ruby/spec@cbfaf51Benoit Daloze2022-07-271-1/+27
|
* Update to ruby/spec@ab32a1aBenoit Daloze2022-06-261-0/+6
|
* Update to ruby/spec@3affe1eBenoit Daloze2022-04-251-8/+0
|
* Update to ruby/spec@ccf0d85Benoit Daloze2021-10-051-0/+3
|
* Update to ruby/spec@032ee74Benoit Daloze2020-05-031-3/+3
|
* Use FrozenError instead of frozen_error_classNobuyoshi Nakada2020-04-011-5/+5
|
* Deprecate taint/trust and related methods, and make the methods no-opsJeremy Evans2019-11-181-4/+6
| | | | | | This removes the related tests, and puts the related specs behind version guards. This affects all code in lib, including some libraries that may want to support older versions of Ruby.
* Update to ruby/spec@875a09eBenoit Daloze2019-07-271-3/+3
|
* Update to ruby/spec@c1b568beregon2018-03-041-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to ruby/spec@0fe33aceregon2017-12-271-5/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Move spec/rubyspec to spec/ruby for consistencyeregon2017-09-201-0/+52
* Other ruby implementations use the spec/ruby directory. [Misc #13792] [ruby-core:82287] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e