diff options
author | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-06-08 23:19:39 +0300 |
---|---|---|
committer | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-06-08 23:23:06 +0300 |
commit | d97f1670bd0437d9b08aa4dd8ea8d2127d3b72e5 (patch) | |
tree | 760dec39782e8f00fa21c61593a1c72fcb3bc366 /actioncable/test/server | |
parent | 6cd5cc375a5c78d08463254460b324a17d078586 (diff) | |
download | rails-d97f1670bd0437d9b08aa4dd8ea8d2127d3b72e5.tar.gz rails-d97f1670bd0437d9b08aa4dd8ea8d2127d3b72e5.tar.bz2 rails-d97f1670bd0437d9b08aa4dd8ea8d2127d3b72e5.zip |
Inherit all actioncable's test classes from `ActionCable::TestCase`
We have defined `ActionCable::TestCase` in `actioncable/test/test_helper.rb`
that we can use in order to prevent code duplication and build common
interface for actioncable's test.
Diffstat (limited to 'actioncable/test/server')
-rw-r--r-- | actioncable/test/server/base_test.rb | 2 | ||||
-rw-r--r-- | actioncable/test/server/broadcasting_test.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/actioncable/test/server/base_test.rb b/actioncable/test/server/base_test.rb index 3b5931f0a4..ad06e7ca3c 100644 --- a/actioncable/test/server/base_test.rb +++ b/actioncable/test/server/base_test.rb @@ -5,7 +5,7 @@ require "stubs/test_server" require "active_support/core_ext/hash/indifferent_access" require "active_support/testing/method_call_assertions" -class BaseTest < ActiveSupport::TestCase +class BaseTest < ActionCable::TestCase include ActiveSupport::Testing::MethodCallAssertions def setup diff --git a/actioncable/test/server/broadcasting_test.rb b/actioncable/test/server/broadcasting_test.rb index 72cec26234..03c900182a 100644 --- a/actioncable/test/server/broadcasting_test.rb +++ b/actioncable/test/server/broadcasting_test.rb @@ -3,7 +3,7 @@ require "test_helper" require "stubs/test_server" -class BroadcastingTest < ActiveSupport::TestCase +class BroadcastingTest < ActionCable::TestCase test "fetching a broadcaster converts the broadcasting queue to a string" do broadcasting = :test_queue server = TestServer.new |