rails/actioncable/test/server
Bart de Water 95b6fbd00f Stop building AS::Notifications::Event manually
It's possible since Rails 6 (3ea2857943dc294d7809930b4cc5b318b9c39577) to let the framework create Event objects, but the guides and docs weren't updated to lead with this example.

Manually instantiating an Event doesn't record CPU time and allocations, I've seen it more than once that people copy-pasting the example code get confused about these stats returning 0. The tests here show that - just like the apps I've worked on - the old pattern keeps getting copy-pasted.
2023-09-29 12:34:23 -04:00
..
base_test.rb Include ActiveSupport::Testing::MethodCallAssertions to ActionCable::TestCase 2018-06-08 23:29:05 +03:00
broadcasting_test.rb Stop building AS::Notifications::Event manually 2023-09-29 12:34:23 -04:00
health_check_test.rb Add Rack::Lint to ActionCable::Server health tests 2023-08-16 22:49:32 -04:00