diff options
author | Jon Moss <me@jonathanmoss.me> | 2016-02-04 22:33:46 -0500 |
---|---|---|
committer | Jon Moss <me@jonathanmoss.me> | 2016-02-24 19:05:03 -0500 |
commit | 8b69f1eeba753c38364fb88136b2503480f2de1d (patch) | |
tree | 6c855e3aaeaf1de00d6d92da22ae4d1d90785e33 /railties/test | |
parent | b5431d7843cc286586a5ed43c1f92e35cacec07e (diff) | |
download | rails-8b69f1eeba753c38364fb88136b2503480f2de1d.tar.gz rails-8b69f1eeba753c38364fb88136b2503480f2de1d.tar.bz2 rails-8b69f1eeba753c38364fb88136b2503480f2de1d.zip |
Enable Action Cable routes by default
This also marks Action Cable routes as internal to Rails.
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/application/rake_test.rb | 2 | ||||
-rw-r--r-- | railties/test/generators/app_generator_test.rb | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/railties/test/application/rake_test.rb b/railties/test/application/rake_test.rb index d1c828b509..3db467256e 100644 --- a/railties/test/application/rake_test.rb +++ b/railties/test/application/rake_test.rb @@ -118,7 +118,7 @@ module ApplicationTests end def test_code_statistics_sanity - assert_match "Code LOC: 14 Test LOC: 0 Code to Test Ratio: 1:0.0", + assert_match "Code LOC: 16 Test LOC: 0 Code to Test Ratio: 1:0.0", Dir.chdir(app_path){ `bin/rails stats` } end diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index c2c3638f07..bc80c7eb1b 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -406,9 +406,6 @@ class AppGeneratorTest < Rails::Generators::TestCase assert_no_file "config/cable.yml" assert_no_file "app/assets/javascripts/cable.coffee" assert_no_file "app/channels" - assert_file "app/views/layouts/application.html.erb" do |content| - assert_no_match(/action_cable_meta_tag/, content) - end assert_file "Gemfile" do |content| assert_no_match(/redis/, content) end |