spec/timeout_spec.rb in timers-3.0.1 vs spec/timeout_spec.rb in timers-4.0.0

- old
+ new

@@ -1,12 +1,12 @@ require 'spec_helper' -require 'timers/timeout' +require 'timers/wait' -RSpec.describe Timers::Timeout do +RSpec.describe Timers::Wait do it "repeats until timeout expired" do - timeout = Timers::Timeout.new(5) + timeout = Timers::Wait.new(5) count = 0 timeout.while_time_remaining do |remaining| expect(remaining).to be_within(TIMER_QUANTUM).of (timeout.duration - count) @@ -16,10 +16,10 @@ expect(count).to eq(5) end it "yields results as soon as possible" do - timeout = Timers::Timeout.new(5) + timeout = Timers::Wait.new(5) result = timeout.while_time_remaining do |remaining| break :done end