diff options
author | Hiroshi SHIBATA <[email protected]> | 2019-10-31 16:50:00 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2019-10-31 16:50:00 +0900 |
commit | 473882e01f7e55753733e2607ace633b5041f11f (patch) | |
tree | 10d7bd858b7f30bf1c972e178de21391f2de1261 /spec/ruby/library/stringio/shared/write.rb | |
parent | ebc884461b0d8c3144c05abeb793e381903de6b2 (diff) |
Skip tainted examples for stringio
Diffstat (limited to 'spec/ruby/library/stringio/shared/write.rb')
-rw-r--r-- | spec/ruby/library/stringio/shared/write.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/spec/ruby/library/stringio/shared/write.rb b/spec/ruby/library/stringio/shared/write.rb index df4822cc16..12c58d10da 100644 --- a/spec/ruby/library/stringio/shared/write.rb +++ b/spec/ruby/library/stringio/shared/write.rb @@ -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 |