diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-07-11 14:29:35 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-07-11 14:52:02 +0900 |
commit | 4e038a7e64a9d52eed59b8f05647d4e58d265ec3 (patch) | |
tree | 9bea1acf7a3d36218517103fe8e1f1fcc3f191ea /spec/ruby | |
parent | d77b84ca82e1cef10ef06776a207151ef864b3ca (diff) | |
download | ruby-4e038a7e64a9d52eed59b8f05647d4e58d265ec3.tar.gz |
Revert "parse.y: Deprecate flip-flops"
This reverts commit bae638ad5b782c44c80efe33834cb9039279af46.
[Feature #5400]
Diffstat (limited to 'spec/ruby')
-rw-r--r-- | spec/ruby/language/if_spec.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/spec/ruby/language/if_spec.rb b/spec/ruby/language/if_spec.rb index 4d809019c9..e2201f4626 100644 --- a/spec/ruby/language/if_spec.rb +++ b/spec/ruby/language/if_spec.rb @@ -308,18 +308,6 @@ describe "The if expression" do 6.times(&b) ScratchPad.recorded.should == [4, 5, 4, 5] end - - ruby_version_is "2.6" do - it 'is deprecated' do - i = 4 - - -> do - eval "ScratchPad << 'it works' if (i == 4)..(i == 7)" - end.should complain(/flip-flop is deprecated/) - - ScratchPad.recorded.should == ['it works'] - end - end end end |