[前][次][番号順一覧][スレッド一覧]

ruby-changes:58524

From: Yusuke <ko1@a...>
Date: Thu, 31 Oct 2019 17:12:00 +0900 (JST)
Subject: [ruby-changes:58524] 5f6fbf8725 (master): spec: Fix syntax errors

https://git.ruby-lang.org/ruby.git/commit/?id=5f6fbf8725

From 5f6fbf8725b6e4bc026480d7b95f7ac21198c591 Mon Sep 17 00:00:00 2001
From: Yusuke Endoh <mame@r...>
Date: Thu, 31 Oct 2019 17:11:23 +0900
Subject: spec: Fix syntax errors

Follow up of 473882e01f7e55753733e2607ace633b5041f11f

diff --git a/spec/ruby/library/stringio/append_spec.rb b/spec/ruby/library/stringio/append_spec.rb
index 034ca96..c46dc59 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 https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/stringio/append_spec.rb#L29
     @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 32bf13d..34e38a6 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 https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/stringio/reopen_spec.rb#L202
   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 https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/stringio/reopen_spec.rb#L272
     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 12c58d1..28683e3 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 https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/stringio/shared/write.rb#L45
     @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 v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]