aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/test/connection/stream_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.
* Use minitest/mock instead of mochautilum2018-05-311-4/+6
|
* assert_calledutilum2018-04-261-2/+6
|
* 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
|
* Remove Faye modeMatthew Draper2016-10-011-2/+0
| | | | No deprecation, because it was never documented.
* 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.
* - Fixed ActionCable::Connection::ClientSocketTest that was overriding ↵Vipul A M2016-04-151-2/+1
| | | | | | ActionCable::Connection::StreamTest test name - Only add attr_readers for required attributes
* Gracefully handle disconnected clientsJeremy Daer2016-03-201-0/+67
We'll get `Errno::ECONNRESET` if the client forcibly disconnected. Just close the socket rather than raising the exception. Handle other errors in `ClientSocket#write`, too, mirroring the Faye error handling which swallows all `StandardError` on write.