Remove not used date variable and another test warning

This commit is contained in:
Carlos Antonio da Silva 2012-05-14 12:31:51 -03:00
parent f4c8f8c5aa
commit 017632fe2b
1 changed files with 1 additions and 2 deletions

View File

@ -89,7 +89,7 @@ class AppGeneratorTest < Rails::Generators::TestCase
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 @@ class AppGeneratorTest < Rails::Generators::TestCase
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