We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
String#lstrip!
String#rstrip!
1 parent 27eb468 commit 5231edeCopy full SHA for 5231ede
spec/ruby/core/string/lstrip_spec.rb
@@ -54,6 +54,6 @@
54
it "raises an ArgumentError if the first codepoint is invalid" do
55
s = "\xDFabc".force_encoding(Encoding::UTF_8)
56
s.valid_encoding?.should be_false
57
- -> { s.send(@method) { } }.should raise_error(ArgumentError)
+ -> { s.lstrip! }.should raise_error(ArgumentError)
58
end
59
spec/ruby/core/string/rstrip_spec.rb
@@ -50,6 +50,6 @@
50
it "raises an ArgumentError if the last codepoint is invalid" do
51
s = "abc\xDF".force_encoding(Encoding::UTF_8)
52
53
+ -> { s.rstrip! }.should raise_error(ArgumentError)
0 commit comments