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

Skip tainted examples for stringio

This commit is contained in:
Hiroshi SHIBATA 2019-10-31 16:50:00 +09:00
parent ebc884461b
commit 473882e01f
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2
3 changed files with 22 additions and 14 deletions

View file

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