From 757a0ce6aaa19af20daea29a1d5e5b16c506f89b Mon Sep 17 00:00:00 2001 From: Arun Agrawal <arunagw@gmail.com> Date: Tue, 8 May 2012 16:41:20 +0530 Subject: Adding test for humans.txt --- railties/test/generators/app_generator_test.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index d13dc8d4ac..a0c308a3b8 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -383,6 +383,12 @@ class AppGeneratorTest < Rails::Generators::TestCase assert_no_match(/run bundle install/, output) 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/, /Date Created: #{date}/ + end + protected def action(*args, &block) -- cgit v1.2.3