diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2019-10-31 17:11:23 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2019-10-31 17:11:23 +0900 |
commit | 5f6fbf8725b6e4bc026480d7b95f7ac21198c591 (patch) | |
tree | ffd25c1cb9cb9e4bd75b6a35148bf9804989d835 /spec/ruby/library | |
parent | 473882e01f7e55753733e2607ace633b5041f11f (diff) | |
download | ruby-5f6fbf8725b6e4bc026480d7b95f7ac21198c591.tar.gz |
spec: Fix syntax errors
Follow up of 473882e01f7e55753733e2607ace633b5041f11f
Diffstat (limited to 'spec/ruby/library')
-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 |