aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/test/test_helper.rb
diff options
context:
space:
mode:
authorbogdanvlviv <bogdanvlviv@gmail.com>2018-06-08 23:25:32 +0300
committerbogdanvlviv <bogdanvlviv@gmail.com>2018-06-08 23:29:05 +0300
commit74a9a2927774e21b62913eca9103be78515a4719 (patch)
tree9b09efd1e0d7c9c4a60dadfadae0c99cd3695b83 /actioncable/test/test_helper.rb
parentd97f1670bd0437d9b08aa4dd8ea8d2127d3b72e5 (diff)
downloadrails-74a9a2927774e21b62913eca9103be78515a4719.tar.gz
rails-74a9a2927774e21b62913eca9103be78515a4719.tar.bz2
rails-74a9a2927774e21b62913eca9103be78515a4719.zip
Include `ActiveSupport::Testing::MethodCallAssertions` to `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.
Diffstat (limited to 'actioncable/test/test_helper.rb')
-rw-r--r--actioncable/test/test_helper.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/actioncable/test/test_helper.rb b/actioncable/test/test_helper.rb
index 755f7b71b4..ac7881c950 100644
--- a/actioncable/test/test_helper.rb
+++ b/actioncable/test/test_helper.rb
@@ -2,6 +2,7 @@
require "action_cable"
require "active_support/testing/autorun"
+require "active_support/testing/method_call_assertions"
require "puma"
require "rack/mock"
@@ -15,6 +16,8 @@ end
Dir[File.expand_path("stubs/*.rb", __dir__)].each { |file| require file }
class ActionCable::TestCase < ActiveSupport::TestCase
+ include ActiveSupport::Testing::MethodCallAssertions
+
def wait_for_async
wait_for_executor Concurrent.global_io_executor
end