diff options
Diffstat (limited to 'spec/ruby/language/precedence_spec.rb')
-rw-r--r-- | spec/ruby/language/precedence_spec.rb | 6 |
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 |