diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2018-10-05 10:24:43 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-05 10:24:43 -0500 |
commit | 049a690e2a2050e3b0524a74ddb81ad2495830de (patch) | |
tree | b3a4bbb8f22a7947d477b90d252fc65c34a6c23b /railties/test/generators/channel_generator_test.rb | |
parent | 0d4b2e4da6532b07d6321eb158a62ef3924917da (diff) | |
parent | 2690c41dec733b76d1e4cd194d93e97f354e81dd (diff) | |
download | rails-049a690e2a2050e3b0524a74ddb81ad2495830de.tar.gz rails-049a690e2a2050e3b0524a74ddb81ad2495830de.tar.bz2 rails-049a690e2a2050e3b0524a74ddb81ad2495830de.zip |
Merge pull request #34095 from prathamesh-sonpatki/fix-tests-related-to-ac
Fix tests related to new JavaScript path for generators
Diffstat (limited to 'railties/test/generators/channel_generator_test.rb')
-rw-r--r-- | railties/test/generators/channel_generator_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/test/generators/channel_generator_test.rb b/railties/test/generators/channel_generator_test.rb index 265d7c9618..1cb8465539 100644 --- a/railties/test/generators/channel_generator_test.rb +++ b/railties/test/generators/channel_generator_test.rb @@ -57,7 +57,7 @@ class ChannelGeneratorTest < Rails::Generators::TestCase assert_no_file "app/javascript/channels/chat_channel.js" end - def test_cable_js_is_created_if_not_present_already + def test_consumer_js_is_created_if_not_present_already run_generator ["chat"] FileUtils.rm("#{destination_root}/app/javascript/channels/index.js") FileUtils.rm("#{destination_root}/app/javascript/channels/consumer.js") @@ -72,7 +72,7 @@ class ChannelGeneratorTest < Rails::Generators::TestCase run_generator ["chat"], behavior: :revoke assert_no_file "app/channels/chat_channel.rb" - assert_no_file "app/assets/javascripts/channels/chat.js" + assert_no_file "app/javascript/channels/chat_channel.js" assert_file "app/channels/application_cable/channel.rb" assert_file "app/channels/application_cable/connection.rb" @@ -86,7 +86,7 @@ class ChannelGeneratorTest < Rails::Generators::TestCase assert_no_file "app/channels/chat_channel_channel.rb" assert_file "app/channels/chat_channel.rb" - assert_no_file "app/assets/javascripts/channels/chat_channel.js" + assert_no_file "app/javascript/channels/chat_channel_channel.js" assert_file "app/javascript/channels/chat_channel.js" end end |