From 109183c2c0902a0af735b2660737e1724307b264 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 23 Jan 2020 22:03:13 +0900 Subject: Guarded the examples for deprecated "taint" --- spec/ruby/library/stringio/shared/write.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'spec/ruby/library/stringio/shared') diff --git a/spec/ruby/library/stringio/shared/write.rb b/spec/ruby/library/stringio/shared/write.rb index 28683e3cb1..dc5e1442ec 100644 --- a/spec/ruby/library/stringio/shared/write.rb +++ b/spec/ruby/library/stringio/shared/write.rb @@ -52,9 +52,11 @@ describe :stringio_write_string, shared: true do end end - it "does not taint self when the passed argument is tainted" do - @io.send(@method, "test".taint) - @io.tainted?.should be_false + ruby_version_is ""..."2.8" do + it "does not taint self when the passed argument is tainted" do + @io.send(@method, "test".taint) + @io.tainted?.should be_false + end end end -- cgit v1.2.3