diff options
-rw-r--r-- | spec/ruby/library/stringio/append_spec.rb | 2 | ||||
-rw-r--r-- | spec/ruby/library/stringio/reopen_spec.rb | 4 | ||||
-rw-r--r-- | spec/ruby/library/stringio/shared/write.rb | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/library/stringio/append_spec.rb b/spec/ruby/library/stringio/append_spec.rb index 034ca96aff..c46dc59ee5 100644 --- a/spec/ruby/library/stringio/append_spec.rb +++ b/spec/ruby/library/stringio/append_spec.rb @@ -29,7 +29,7 @@ describe "StringIO#<< when passed [Object]" do @io.string.should == "example\000\000\000\000\000\000\000\000just testing" end - ruby_version_is ""..."2.7" + ruby_version_is ""..."2.7" do it "taints self's String when the passed argument is tainted" do (@io << "test".taint) @io.string.tainted?.should be_true diff --git a/spec/ruby/library/stringio/reopen_spec.rb b/spec/ruby/library/stringio/reopen_spec.rb index 32bf13dd6d..34e38a63b4 100644 --- a/spec/ruby/library/stringio/reopen_spec.rb +++ b/spec/ruby/library/stringio/reopen_spec.rb @@ -202,7 +202,7 @@ describe "StringIO#reopen when passed [Object]" do end # NOTE: WEIRD! - ruby_version_is ""..."2.7" + ruby_version_is ""..."2.7" do it "taints self when the passed Object was tainted" do @io.reopen(StringIO.new("reopened").taint) @io.tainted?.should be_true @@ -272,7 +272,7 @@ describe "StringIO#reopen" do str.should == '' end - ruby_version_is ""..."2.7" + ruby_version_is ""..."2.7" do it "taints self if the provided StringIO argument is tainted" do new_io = StringIO.new("tainted") new_io.taint diff --git a/spec/ruby/library/stringio/shared/write.rb b/spec/ruby/library/stringio/shared/write.rb index 12c58d10da..28683e3cb1 100644 --- a/spec/ruby/library/stringio/shared/write.rb +++ b/spec/ruby/library/stringio/shared/write.rb @@ -45,7 +45,7 @@ describe :stringio_write_string, shared: true do @io.pos.should eql(4) end - ruby_version_is ""..."2.7" + ruby_version_is ""..."2.7" do it "taints self's String when the passed argument is tainted" do @io.send(@method, "test".taint) @io.string.tainted?.should be_true |