summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-07-11 14:29:35 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-07-11 14:52:02 +0900
commit4e038a7e64a9d52eed59b8f05647d4e58d265ec3 (patch)
tree9bea1acf7a3d36218517103fe8e1f1fcc3f191ea /spec
parentd77b84ca82e1cef10ef06776a207151ef864b3ca (diff)
Revert "parse.y: Deprecate flip-flops"
This reverts commit bae638ad5b782c44c80efe33834cb9039279af46. [Feature #5400]
Diffstat (limited to 'spec')
-rw-r--r--spec/ruby/language/if_spec.rb12
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