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:
parent
ebc884461b
commit
473882e01f
3 changed files with 22 additions and 14 deletions
|
@ -29,9 +29,11 @@ describe "StringIO#<< when passed [Object]" do
|
|||
@io.string.should == "example\000\000\000\000\000\000\000\000just testing"
|
||||
end
|
||||
|
||||
it "taints self's String when the passed argument is tainted" do
|
||||
(@io << "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 << "test".taint)
|
||||
@io.string.tainted?.should be_true
|
||||
end
|
||||
end
|
||||
|
||||
it "does not taint self when the passed argument is tainted" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue