提交 017632fe 编写于 作者: C Carlos Antonio da Silva

Remove not used date variable and another test warning

上级 f4c8f8c5
...@@ -89,7 +89,7 @@ def test_application_new_show_help_message_inside_existing_rails_directory ...@@ -89,7 +89,7 @@ def test_application_new_show_help_message_inside_existing_rails_directory
output = Dir.chdir(app_root) do output = Dir.chdir(app_root) do
`rails new --help` `rails new --help`
end end
assert_match /rails new APP_PATH \[options\]/, output assert_match(/rails new APP_PATH \[options\]/, output)
assert_equal true, $?.success? assert_equal true, $?.success?
end end
...@@ -378,7 +378,6 @@ def test_pretend_option ...@@ -378,7 +378,6 @@ def test_pretend_option
end end
def test_humans_txt_file def test_humans_txt_file
date = Date.today.strftime("%B %d, %Y")
run_generator [File.join(destination_root, 'things-43')] run_generator [File.join(destination_root, 'things-43')]
assert_file "things-43/public/humans.txt", /Name: Things43/, /Software: Ruby on Rails/ assert_file "things-43/public/humans.txt", /Name: Things43/, /Software: Ruby on Rails/
end end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册