diff options
author | Xavier Noria <fxn@hashref.com> | 2012-05-08 05:42:42 -0700 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2012-05-08 05:42:42 -0700 |
commit | 882e750cbe09450388190e92e2d92eac352b40fa (patch) | |
tree | ac0670ac8e5a78ba7ba64c78c9115aa5b79d0ecc | |
parent | 30f5b1a1cb14578d1634146119a25c20a466b97e (diff) | |
parent | 757a0ce6aaa19af20daea29a1d5e5b16c506f89b (diff) | |
download | rails-882e750cbe09450388190e92e2d92eac352b40fa.tar.gz rails-882e750cbe09450388190e92e2d92eac352b40fa.tar.bz2 rails-882e750cbe09450388190e92e2d92eac352b40fa.zip |
Merge pull request #6205 from arunagw/humnans_txt_test
Adding test for humans.txt
-rw-r--r-- | railties/test/generators/app_generator_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
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) |