diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index 05a741403c4f07125a0e645c035280fdfb291efb..26e912fd9e37e0c11aa3a234315ce158d8d303f4 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -89,7 +89,7 @@ def test_application_new_show_help_message_inside_existing_rails_directory output = Dir.chdir(app_root) do `rails new --help` end - assert_match /rails new APP_PATH \[options\]/, output + assert_match(/rails new APP_PATH \[options\]/, output) assert_equal true, $?.success? end @@ -378,7 +378,6 @@ def test_pretend_option end def test_humans_txt_file - date = Date.today.strftime("%B %d, %Y") run_generator [File.join(destination_root, 'things-43')] assert_file "things-43/public/humans.txt", /Name: Things43/, /Software: Ruby on Rails/ end