aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArun Agrawal <arunagw@gmail.com>2012-05-08 16:41:20 +0530
committerArun Agrawal <arunagw@gmail.com>2012-05-08 18:02:25 +0530
commit757a0ce6aaa19af20daea29a1d5e5b16c506f89b (patch)
treeac0670ac8e5a78ba7ba64c78c9115aa5b79d0ecc
parent30f5b1a1cb14578d1634146119a25c20a466b97e (diff)
downloadrails-757a0ce6aaa19af20daea29a1d5e5b16c506f89b.tar.gz
rails-757a0ce6aaa19af20daea29a1d5e5b16c506f89b.tar.bz2
rails-757a0ce6aaa19af20daea29a1d5e5b16c506f89b.zip
Adding test for humans.txt
-rw-r--r--railties/test/generators/app_generator_test.rb6
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)