Skip to content

Adding test for humans.txt #6205

Merged
merged 1 commit into from May 8, 2012
View
6 railties/test/generators/app_generator_test.rb
@@ -383,6 +383,12 @@ def test_pretend_option
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)
Something went wrong with that request. Please try again.