aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Use to_gid_param for connection identifiersJan Habermann2015-11-181-0/+4
|
* Add multiple identifiers testJan Habermann2015-11-064-2/+51
|
* Rename Subscription#reject! to Subscription#reject as there's only one ↵Pratik Naik2015-11-051-1/+1
| | | | version of the method
* Merge branch 'master' into subscription-rejectionPratik Naik2015-11-042-4/+12
|\
| * Make sure cable closes the connection if open when responding to an invalid ↵Pratik Naik2015-11-041-2/+10
| | | | | | | | request
| * 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.
* | | Allow rejecting subscriptions from the channelPratik Naik2015-10-211-0/+25
|/ /
* | Fix the error message in testsPratik Naik2015-10-191-1/+1
| |
* | Better test namePratik Naik2015-10-191-1/+1
| |
* | Make sure the subscription confirmaion is only sent out oncePratik Naik2015-10-191-0/+24
| |
* | Fix an error message in the subscription testsPratik Naik2015-10-161-1/+1
| |
* | Send subscription confirmation from server to the client to avoid race ↵Pratik Naik2015-10-163-9/+33
| | | | | | | | | | | | | | | | | | | | 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.
* | Fix stream testsPratik Naik2015-10-161-2/+2
| |
* | Merge pull request #97 from lsylvester/speed-up-testsJeremy Daer2015-10-161-1/+2
|\ \ | | | | | | Speed up tests be calling EM.run_deferred_callbacks instead of setting a timer
| * | Speed up tests be calling EM.run_deferred_callbacks instead of setting a timerLachlan Sylvester2015-10-171-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The run_in_eventmachine test helper method is setting a 0.1 second timer to stop the event machine loop. This causes each test that requires an event machine loop to wait for 0.1 second regardless of how long the test takes to process. This changes that to call EM.run_deferred_callbacks, which immediatly process pending actions in the event loop and then is able to exit the event loop without doing any waiting. Before this change, running tests produced Finished in 2.957857s, 15.8899 runs/s, 27.7228 assertions/s. After, the tests get Finished in 0.065942s, 712.7514 runs/s, 1243.5237 assertions/s.
* | | Devolve blanket #require to reveal intent and responsibilityJeremy Daer2015-10-163-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | * Move specific requires close to where they're needed. * Use the private active_support/rails dep to wrap up common needs like eager autoload and module delegation. * Use a single Rails engine rather than an engine and a railtie. * Prefer `AS::JSON.encode` to `Object#to_json`.
* | | Shush some low-hanging Ruby warningsJeremy Daer2015-10-162-2/+11
|/ /
* | Websockets -> WebSocket spelling [ci skip]Jeremy Daer2015-10-151-1/+1
| |
* | Run connection tests in EM loopPratik Naik2015-10-1510-128/+242
| |
* | Merge pull request #85 from rails/cross-site-forgery-protectionPratik2015-10-122-1/+59
|\ \ | | | | | | Add support for cross site forgery protection
| * | Treat ORIGIN as an opaque identifier and do equality comparison with the ↵Pratik Naik2015-10-122-7/+8
| | | | | | | | | | | | specified whitelist
| * | Set appropriate origin and host in the testsPratik Naik2015-10-121-2/+3
| | |
| * | First take at cross site forgery protectionPratik Naik2015-10-072-0/+56
| | |
* | | Run a single eventmachine timer to send heartbeatsPratik Naik2015-10-081-3/+1
|/ /
* / support connection identifiers that don't implement to_global_id by ↵Mark Humphreys2015-08-241-0/+39
|/ | | | defaulting to to_s
* refactor channel look up to use a hash instead of an array and reduce the ↵Lachlan Sylvester2015-07-301-1/+1
| | | | number of calls to safe_constantize because it can be slow
* Merge pull request #34 from ↵Kasper Timm Hansen2015-07-294-3/+54
|\ | | | | | | | | lsylvester/add-broadcast_to-and-stream_for-methods-to-channel add broadcast_to and stream_for methods as per #26
| * add broadcast_to and stream_for methods as per #26Lachlan Sylvester2015-07-284-3/+54
| |
* | Improve channel actions dispatcher to allow inheritance/mixinsCristian Bica2015-07-231-2/+38
| | | | | | | | Fixes #14
* | Update gems and requiresThomas Walpole2015-07-221-0/+2
|/
* Worker testsPratik Naik2015-07-142-0/+48
|
* Remove busted testsPratik Naik2015-07-132-61/+0
|
* Tests for channel subscriptionsPratik Naik2015-07-131-0/+87
|
* Always load all the stub filesPratik Naik2015-07-135-6/+18
|
* Connection identifier testsPratik Naik2015-07-122-0/+81
|
* Test auth failurePratik Naik2015-07-121-0/+26
|
* More connection testsPratik Naik2015-07-123-6/+65
|
* Add some more testsPratik Naik2015-07-128-24/+129
|
* Tests for the Channel APIPratik Naik2015-07-121-18/+120
|
* Load mocha for testsPratik Naik2015-07-121-0/+2
|
* Tests are busted at the moment. Note that.David Heinemeier Hansson2015-07-072-49/+49
|
* Removing unused matches? methodDavid Heinemeier Hansson2015-07-072-6/+0
| | | | | @lifo I couldn’t find any use of documentation for this, so removed it for now. Was it just for testing?
* Extract Server configuration into a Configuration objectDavid Heinemeier Hansson2015-07-051-1/+1
|
* Move server classes to its own namespaceDavid Heinemeier Hansson2015-06-292-2/+2
|
* Switch internal actions to be called commands instead, such that we can use ↵David Heinemeier Hansson2015-06-191-1/+1
| | | | action as the routing word on the user side
* Dont create the test log filePratik Naik2015-02-131-4/+0
|
* No cramp and use celluloid workers to run callbacksPratik Naik2015-02-051-2/+1
|
* Add some tests. Work in progress. Testing websockets is hard.Pratik Naik2015-01-153-0/+105