From 5f6fbf8725b6e4bc026480d7b95f7ac21198c591 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Thu, 31 Oct 2019 17:11:23 +0900 Subject: spec: Fix syntax errors Follow up of 473882e01f7e55753733e2607ace633b5041f11f --- spec/ruby/library/stringio/append_spec.rb | 2 +- spec/ruby/library/stringio/reopen_spec.rb | 4 ++-- spec/ruby/library/stringio/shared/write.rb | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'spec') 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 -- cgit v1.2.3