aboutsummaryrefslogtreecommitdiffstats
path: root/test/channel/base_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #69 from mieko/callbacksRafael Mendonça França2015-10-231-2/+2
|\ | | | | | | Use ActiveSupport::Callbacks for Channel subscription callbacks.
| * Use ActiveSupport::Callbacks for Channel subscription callbacks.Mike A. Owens2015-08-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | * Rely on AS::Callbacks for callback handling. * Add before_subscribe, after_subscribe, before_unsubscribe and after_unsubscribe convenience methods * alias on_subscribe and on_unsubscribe to after_subscribe and after_unsubscribe, respectively. * Remove `subscribed` and `unsubscribed` from the callback chain: these methods are now executed as the subject of the callbacks. * Update portions of ActionCable to use the more specific callback names.
* | Send subscription confirmation from server to the client to avoid race ↵Pratik Naik2015-10-161-0/+6
| | | | | | | | | | | | | | | | | | | | conditions. Without this, it's very easy to send messages over a subscription even before the redis pubsub has been fully initialized. Now we delay calling the subscription#connected method on the client side until we receive a subscription confirmation message from the server.
* | Shush some low-hanging Ruby warningsJeremy Daer2015-10-161-0/+5
|/
* Improve channel actions dispatcher to allow inheritance/mixinsCristian Bica2015-07-231-2/+38
| | | | Fixes #14
* Always load all the stub filesPratik Naik2015-07-131-2/+1
|
* Add some more testsPratik Naik2015-07-121-0/+102