diff --git a/language/if_spec.rb b/language/if_spec.rb index 4d809019c9..e2201f4626 100644 --- a/language/if_spec.rb +++ b/language/if_spec.rb @@ -308,18 +308,6 @@ 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