diff options
author | 卜部昌平 <[email protected]> | 2020-07-27 10:25:27 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2020-12-02 20:17:11 +0900 |
commit | 12a121cc0f7f5b438388288383a7b8b9baf3e2fe (patch) | |
tree | a82ed5807c74a6958284710790a92df47aa82b36 /spec | |
parent | 28001e55b3eb65e210484bc2b6f42e89c2903d49 (diff) |
ENV.index: delete
Has been deprecated since 373282f6656d3d3d989d261e7a95f8e81b5c9712.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/ruby/core/env/index_spec.rb | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/spec/ruby/core/env/index_spec.rb b/spec/ruby/core/env/index_spec.rb index 43875f5a50..dfa40b6139 100644 --- a/spec/ruby/core/env/index_spec.rb +++ b/spec/ruby/core/env/index_spec.rb @@ -1,12 +1,14 @@ require_relative '../../spec_helper' require_relative 'shared/key' -describe "ENV.index" do - it_behaves_like :env_key, :index +ruby_version_is ''...'2.8' do + describe "ENV.index" do + it_behaves_like :env_key, :index - it "warns about deprecation" do - -> do - ENV.index("foo") - end.should complain(/warning: ENV.index is deprecated; use ENV.key/) + it "warns about deprecation" do + -> do + ENV.index("foo") + end.should complain(/warning: ENV.index is deprecated; use ENV.key/) + end end end |