summaryrefslogtreecommitdiff
path: root/spec/ruby/language/precedence_spec.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-08-29 11:09:22 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-08-29 11:10:45 +0900
commitd92289cd8d5cac784ae856fb777f10dbc9f91b62 (patch)
tree7d2bd38521859d94a7c9bca3ec63104225e551c9 /spec/ruby/language/precedence_spec.rb
parentcd0e208963bdf9ee2fec30e83bdc8f6bc77a7b8d (diff)
Revert "Remove warnings of flip-flop deprecation from tests and specs"
This reverts commit bf7a32d22079cc44eb19794e41d82b886d5d17b3. flip-flop is no longer deprecated. [Feature #5400]
Diffstat (limited to 'spec/ruby/language/precedence_spec.rb')
-rw-r--r--spec/ruby/language/precedence_spec.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/ruby/language/precedence_spec.rb b/spec/ruby/language/precedence_spec.rb
index a911f765b0..b122577a75 100644
--- a/spec/ruby/language/precedence_spec.rb
+++ b/spec/ruby/language/precedence_spec.rb
@@ -301,10 +301,8 @@ describe "Operators" do
from = 1
to = 2
# These are Range instances, not flip-flop
- suppress_warning do
- (eval("from..to") ? 3 : 4).should == 3
- (eval("from...to") ? 3 : 4).should == 3
- end
+ (from..to ? 3 : 4).should == 3
+ (from...to ? 3 : 4).should == 3
end
it "? : is right-associative" do