aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators
diff options
context:
space:
mode:
authorTeo Ljungberg <teo@teoljungberg.com>2016-02-28 23:59:32 +0100
committerTeo Ljungberg <teo@teoljungberg.com>2016-02-29 09:04:57 +0100
commit5a0dddda0980cefbaf80e9f8f10369f62a1d19d8 (patch)
treeb2bbf4a5975d453ea5112813b4a16fdc7bbf7c16 /railties/test/generators
parentcaa6fb3eb40e40b7c7487a1815482951cd162d7a (diff)
downloadrails-5a0dddda0980cefbaf80e9f8f10369f62a1d19d8.tar.gz
rails-5a0dddda0980cefbaf80e9f8f10369f62a1d19d8.tar.bz2
rails-5a0dddda0980cefbaf80e9f8f10369f62a1d19d8.zip
Address ruby warnings
- Ambiguous first argument - Mismatched indentation
Diffstat (limited to 'railties/test/generators')
-rw-r--r--railties/test/generators/channel_generator_test.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/railties/test/generators/channel_generator_test.rb b/railties/test/generators/channel_generator_test.rb
index e31736a74c..cda9e8b910 100644
--- a/railties/test/generators/channel_generator_test.rb
+++ b/railties/test/generators/channel_generator_test.rb
@@ -6,16 +6,16 @@ class ChannelGeneratorTest < Rails::Generators::TestCase
tests Rails::Generators::ChannelGenerator
def test_application_cable_skeleton_is_created
- run_generator ['books']
+ run_generator ['books']
- assert_file "app/channels/application_cable/channel.rb" do |cable|
- assert_match(/module ApplicationCable\n class Channel < ActionCable::Channel::Base\n/, cable)
- end
+ assert_file "app/channels/application_cable/channel.rb" do |cable|
+ assert_match(/module ApplicationCable\n class Channel < ActionCable::Channel::Base\n/, cable)
+ end
- assert_file "app/channels/application_cable/connection.rb" do |cable|
- assert_match(/module ApplicationCable\n class Connection < ActionCable::Connection::Base\n/, cable)
- end
- end
+ assert_file "app/channels/application_cable/connection.rb" do |cable|
+ assert_match(/module ApplicationCable\n class Connection < ActionCable::Connection::Base\n/, cable)
+ end
+ end
def test_channel_is_created
run_generator ['chat']