diff --git a/railties/test/application/rake_test.rb b/railties/test/application/rake_test.rb index 6ee9bc4a02..3354d169de 100644 --- a/railties/test/application/rake_test.rb +++ b/railties/test/application/rake_test.rb @@ -182,7 +182,7 @@ module ApplicationTests end def test_code_statistics - assert_match "Code LOC: 61 Test LOC: 3 Code to Test Ratio: 1:0.0", + assert_match "Code LOC: 62 Test LOC: 3 Code to Test Ratio: 1:0.0", rails("stats") end diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index 86af490630..d77f06ad71 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -551,6 +551,14 @@ class AppGeneratorTest < Rails::Generators::TestCase end end + def test_viewport_meta_tag_is_present + run_generator [destination_root] + + assert_file "app/views/layouts/application.html.erb" do |contents| + assert_match(/