1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actioncable/test/connection
Daniel Colson d092c133c7
Do not allow subscribing to Base channel
Closes #40482

Prior to this commit it was possible to subscribe with
`ActionCable::Channel::Base` as the subscription class. While it doesn't
seem possible to exploit this in away way, it also doesn't seem like
something we need to allow.

This commit swaps [Module#>=][gte] with [Module#>][gt] to prevent
subscribing to a channel when `ActionCable::Channel::Base` is the
subscription class.

[gte]: https://ruby-doc.org/core-2.5.3/Module.html#method-i-3E-3D
[gt]: https://ruby-doc.org/core-2.5.3/Module.html#method-i-3E
2020-11-24 22:30:03 -05:00
..
authorization_test.rb Stop trying to reconnect on unauthorized cable connections 2018-12-05 10:40:29 -08:00
base_test.rb update from PR #36222 2020-02-12 13:31:43 -05:00
client_socket_test.rb Stop trying to reconnect on unauthorized cable connections 2018-12-05 10:40:29 -08:00
cross_site_forgery_test.rb Use frozen string literal in actioncable/ 2017-07-23 23:30:29 +03:00
identifier_test.rb Include ActiveSupport::Testing::MethodCallAssertions to ActionCable::TestCase 2018-06-08 23:29:05 +03:00
multiple_identifiers_test.rb remove unnecessary mocking in ActionCable tests 2018-05-22 02:29:18 +02:00
stream_test.rb Include ActiveSupport::Testing::MethodCallAssertions to ActionCable::TestCase 2018-06-08 23:29:05 +03:00
string_identifier_test.rb remove unnecessary mocking in ActionCable tests 2018-05-22 02:29:18 +02:00
subscriptions_test.rb Do not allow subscribing to Base channel 2020-11-24 22:30:03 -05:00
test_case_test.rb Update Action Cable connection testing. 2019-01-14 01:19:56 +01:00