diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-08-31 14:58:31 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-09-25 09:50:33 +0900 |
commit | 996af2ce086249e904b2ce95ab2fcd1de7d757be (patch) | |
tree | 1b70f747a0eefc32be13f05bdb037275d1e664a1 /spec/ruby/language | |
parent | 83ff0f74bf69650754cac020bcd4ff9adbba877e (diff) | |
download | ruby-996af2ce086249e904b2ce95ab2fcd1de7d757be.tar.gz |
Disable deprecation warning by the default [Feature #16345]
And `-w` option turns it on.
Diffstat (limited to 'spec/ruby/language')
-rw-r--r-- | spec/ruby/language/predefined_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/language/predefined_spec.rb b/spec/ruby/language/predefined_spec.rb index 5ce4e77906..cb0462731b 100644 --- a/spec/ruby/language/predefined_spec.rb +++ b/spec/ruby/language/predefined_spec.rb @@ -654,7 +654,7 @@ describe "Predefined global $," do -> { $, = Object.new }.should raise_error(TypeError) end - ruby_version_is "2.7" do + ruby_version_is "2.7"..."3.0" do it "warns if assigned non-nil" do -> { $, = "_" }.should complain(/warning: `\$,' is deprecated/) end @@ -693,7 +693,7 @@ describe "Predefined global $;" do $; = nil end - ruby_version_is "2.7" do + ruby_version_is "2.7"..."3.0" do it "warns if assigned non-nil" do -> { $; = "_" }.should complain(/warning: `\$;' is deprecated/) end |