aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/test/channel/periodic_timers_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Include `ActiveSupport::Testing::MethodCallAssertions` to ↵bogdanvlviv2018-06-081-3/+0
| | | | | | | | | `ActionCable::TestCase` Remove all `include ActiveSupport::Testing::MethodCallAssertions` in actioncable's tests since we can do it only in `ActionCable::TestCase` in order to prevent code duplication. We use the same approach for other modules of Rails.
* Inherit all actioncable's test classes from `ActionCable::TestCase`bogdanvlviv2018-06-081-1/+1
| | | | | | We have defined `ActionCable::TestCase` in `actioncable/test/test_helper.rb` that we can use in order to prevent code duplication and build common interface for actioncable's test.
* Use minitest/mock instead of mochautilum2018-05-311-5/+19
|
* Use frozen string literal in actioncable/Kir Shatrov2017-07-231-0/+2
|
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
| | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa.
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
|
* correctly check error messageyuuji.yaginuma2017-01-251-3/+6
| | | | | | | `assert_raise` does not check error message. However, in some tests, it seems like expecting error message checking with `assert_raise`. Instead of specifying an error message in `assert_raise`, modify to use another assert to check the error message.
* Add more rubocop rules about whitespacesRafael Mendonça França2016-10-291-1/+1
|
* Add Channel#ensure_confirmation_sent; call #subscribe_to_channel after ↵palkan2016-09-221-0/+1
| | | | initializing
* remove redundant curlies from hash argumentsXavier Noria2016-08-061-1/+1
|
* applies new string literal convention in actioncable/testXavier Noria2016-08-061-9/+9
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Cable: Periodic timers refreshJeremy Daer2016-04-181-10/+38
| | | | | | | | | * Rewrite docs * Support blocks in addition to method names and Proc args * Check for valid arguments * Convert `periodically :method_name` to Proc callbacks * Drop periodic runner methods from the worker pool * Ensure we clear active periodic timers after shutdown
* Support faye-websocket + EventMachine as an optionMatthew Draper2016-03-021-1/+1
|
* Revert "Revert "Eliminate the EventMachine dependency""Matthew Draper2016-01-301-1/+1
|
* Revert "Eliminate the EventMachine dependency"David Heinemeier Hansson2016-01-271-1/+1
|
* Using a hacked faye-websocket, drop EventMachineMatthew Draper2016-01-241-1/+1
|
* Get ready to merge into RailsDavid Heinemeier Hansson2015-12-141-0/+40