1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

spec: Fix syntax errors

Follow up of 473882e01f
This commit is contained in:
Yusuke Endoh 2019-10-31 17:11:23 +09:00
parent 473882e01f
commit 5f6fbf8725
3 changed files with 4 additions and 4 deletions

View file

@ -29,7 +29,7 @@ describe "StringIO#<< when passed [Object]" do
@io.string.should == "example\000\000\000\000\000\000\000\000just testing" @io.string.should == "example\000\000\000\000\000\000\000\000just testing"
end end
ruby_version_is ""..."2.7" ruby_version_is ""..."2.7" do
it "taints self's String when the passed argument is tainted" do it "taints self's String when the passed argument is tainted" do
(@io << "test".taint) (@io << "test".taint)
@io.string.tainted?.should be_true @io.string.tainted?.should be_true

View file

@ -202,7 +202,7 @@ describe "StringIO#reopen when passed [Object]" do
end end
# NOTE: WEIRD! # NOTE: WEIRD!
ruby_version_is ""..."2.7" ruby_version_is ""..."2.7" do
it "taints self when the passed Object was tainted" do it "taints self when the passed Object was tainted" do
@io.reopen(StringIO.new("reopened").taint) @io.reopen(StringIO.new("reopened").taint)
@io.tainted?.should be_true @io.tainted?.should be_true
@ -272,7 +272,7 @@ describe "StringIO#reopen" do
str.should == '' str.should == ''
end end
ruby_version_is ""..."2.7" ruby_version_is ""..."2.7" do
it "taints self if the provided StringIO argument is tainted" do it "taints self if the provided StringIO argument is tainted" do
new_io = StringIO.new("tainted") new_io = StringIO.new("tainted")
new_io.taint new_io.taint

View file

@ -45,7 +45,7 @@ describe :stringio_write_string, shared: true do
@io.pos.should eql(4) @io.pos.should eql(4)
end end
ruby_version_is ""..."2.7" ruby_version_is ""..."2.7" do
it "taints self's String when the passed argument is tainted" do it "taints self's String when the passed argument is tainted" do
@io.send(@method, "test".taint) @io.send(@method, "test".taint)
@io.string.tainted?.should be_true @io.string.tainted?.should be_true