summaryrefslogtreecommitdiff
path: root/spec/ruby/library/stringio/append_spec.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2020-01-23 22:03:13 +0900
committerNobuyoshi Nakada <[email protected]>2020-01-23 22:03:13 +0900
commit109183c2c0902a0af735b2660737e1724307b264 (patch)
tree6c22bdfe41f73d74aa4ea648f373def288272a08 /spec/ruby/library/stringio/append_spec.rb
parent27ac1c615d2a2884435a162403e2833716abf436 (diff)
Guarded the examples for deprecated "taint"
Diffstat (limited to 'spec/ruby/library/stringio/append_spec.rb')
-rw-r--r--spec/ruby/library/stringio/append_spec.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/spec/ruby/library/stringio/append_spec.rb b/spec/ruby/library/stringio/append_spec.rb
index c46dc59ee5..b35d17ed31 100644
--- a/spec/ruby/library/stringio/append_spec.rb
+++ b/spec/ruby/library/stringio/append_spec.rb
@@ -36,9 +36,11 @@ describe "StringIO#<< when passed [Object]" do
end
end
- it "does not taint self when the passed argument is tainted" do
- (@io << "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 << "test".taint)
+ @io.tainted?.should be_false
+ end
end
it "updates self's position" do