Skip to content
Browse files

README.rdoc is a template

  • Loading branch information...
1 parent a9163b5 commit bbcdc864a693fc7a5cdaa82829cd6c1efac16ef1 @spastorino spastorino committed Jan 15, 2011
View
2 railties/lib/rails/generators/rails/plugin_new/plugin_new_generator.rb
@@ -16,7 +16,7 @@ def app
end
def readme
- copy_file "README.rdoc"
+ template "README.rdoc"
end
def gemfile
View
1 railties/test/generators/plugin_new_generator_test.rb
@@ -40,6 +40,7 @@ def test_invalid_plugin_name_is_fixed
def test_generating_without_options
run_generator
+ assert_file "README.rdoc", /Bukkits/
assert_no_file "config/routes.rb"
assert_file "test/test_helper.rb"
assert_file "test/bukkits_test.rb", /assert_kind_of Module, Bukkits/

0 comments on commit bbcdc86

Please sign in to comment.
Something went wrong with that request. Please try again.