From 473882e01f7e55753733e2607ace633b5041f11f Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 31 Oct 2019 16:50:00 +0900 Subject: Skip tainted examples for stringio --- spec/ruby/library/stringio/shared/write.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'spec/ruby/library/stringio/shared/write.rb') 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 -- cgit v1.2.3