mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@f8a2d54
This commit is contained in:
parent
ed377cc9aa
commit
809f0b8a13
76 changed files with 2451 additions and 224 deletions
|
@ -84,6 +84,24 @@ describe "String#split with String" do
|
|||
$; = old_fs
|
||||
end
|
||||
end
|
||||
|
||||
ruby_version_is "2.7" do
|
||||
context "when $; is not nil" do
|
||||
before do
|
||||
suppress_warning do
|
||||
@old_value, $; = $;, 'foobar'
|
||||
end
|
||||
end
|
||||
|
||||
after do
|
||||
$; = @old_value
|
||||
end
|
||||
|
||||
it "warns" do
|
||||
-> { "".split }.should complain(/warning: \$; is set to non-nil value/)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
it "ignores leading and continuous whitespace when string is a single space" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue