instance method advance_time

Ruby on Rails edge

Since edge

Signature

advance_time(seconds)

Advances all registered periodic timers by the given number of seconds, firing their blocks for each elapsed interval:

def test_timer subscribe advance_time 5.seconds assert_equal 1, subscription.tick_count end

Parameters

seconds req
Source
# File actioncable/lib/action_cable/channel/test_case.rb, line 236
        def advance_time(seconds)
          testserver.advance_time(seconds)
        end

Defined in actioncable/lib/action_cable/channel/test_case.rb line 236 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionCable::Channel::ChannelExt::TestCase::Behavior

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close