From 017632fe2b45fca68685bed2dabfa97bb6722351 Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Mon, 14 May 2012 12:31:51 -0300 Subject: [PATCH] Remove not used date variable and another test warning --- railties/test/generators/app_generator_test.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index 05a741403c..26e912fd9e 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 -- GitLab