aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/lib/rails/generators/channel/channel_generator.rb
diff options
context:
space:
mode:
authorVladimir Dementyev <dementiev.vm@gmail.com>2019-01-13 21:54:31 -0500
committerVladimir Dementyev <dementiev.vm@gmail.com>2019-01-13 21:54:31 -0500
commit0f41aa30d30afff051e68afe67c53b626d5b05c0 (patch)
treeb08adc9c77b37ebae0772568a30ee1a0d6ccde8b /actioncable/lib/rails/generators/channel/channel_generator.rb
parent3631d7eee4bd034f2eefe1b9892d5fcd565579ac (diff)
downloadrails-0f41aa30d30afff051e68afe67c53b626d5b05c0.tar.gz
rails-0f41aa30d30afff051e68afe67c53b626d5b05c0.tar.bz2
rails-0f41aa30d30afff051e68afe67c53b626d5b05c0.zip
Add channel test generator
Diffstat (limited to 'actioncable/lib/rails/generators/channel/channel_generator.rb')
-rw-r--r--actioncable/lib/rails/generators/channel/channel_generator.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/actioncable/lib/rails/generators/channel/channel_generator.rb b/actioncable/lib/rails/generators/channel/channel_generator.rb
index ef51981e89..0b80d1f96b 100644
--- a/actioncable/lib/rails/generators/channel/channel_generator.rb
+++ b/actioncable/lib/rails/generators/channel/channel_generator.rb
@@ -11,6 +11,8 @@ module Rails
check_class_collision suffix: "Channel"
+ hook_for :test_framework
+
def create_channel_file
template "channel.rb", File.join("app/channels", class_path, "#{file_name}_channel.rb")