diff options
author | Vladimir Dementyev <dementiev.vm@gmail.com> | 2019-01-13 21:54:31 -0500 |
---|---|---|
committer | Vladimir Dementyev <dementiev.vm@gmail.com> | 2019-01-13 21:54:31 -0500 |
commit | 0f41aa30d30afff051e68afe67c53b626d5b05c0 (patch) | |
tree | b08adc9c77b37ebae0772568a30ee1a0d6ccde8b /actioncable/lib/rails/generators/test_unit/templates/channel_test.rb.tt | |
parent | 3631d7eee4bd034f2eefe1b9892d5fcd565579ac (diff) | |
download | rails-0f41aa30d30afff051e68afe67c53b626d5b05c0.tar.gz rails-0f41aa30d30afff051e68afe67c53b626d5b05c0.tar.bz2 rails-0f41aa30d30afff051e68afe67c53b626d5b05c0.zip |
Add channel test generator
Diffstat (limited to 'actioncable/lib/rails/generators/test_unit/templates/channel_test.rb.tt')
-rw-r--r-- | actioncable/lib/rails/generators/test_unit/templates/channel_test.rb.tt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/actioncable/lib/rails/generators/test_unit/templates/channel_test.rb.tt b/actioncable/lib/rails/generators/test_unit/templates/channel_test.rb.tt new file mode 100644 index 0000000000..301dc0b6fe --- /dev/null +++ b/actioncable/lib/rails/generators/test_unit/templates/channel_test.rb.tt @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +require "test_helper" + +class <%= class_name %>ChannelTest < ActionCable::Channel::TestCase + # test "subscribes" do + # subscribe + # assert subscription.confirmed? + # end +end |