Skip to content
Browse files

Merge pull request #3924 from laserlemon/readme-ext

Add the .rdoc extension to the README that Rails generates for a new app
  • Loading branch information...
2 parents 866d2db + 5c60b44 commit f79b257e0bdddc22c21b3dc0c0929a4865daa940 @tenderlove tenderlove committed Dec 9, 2011
View
2 railties/lib/rails/generators/rails/app/app_generator.rb
@@ -38,7 +38,7 @@ def rakefile
end
def readme
- copy_file "README"
+ copy_file "README", "README.rdoc"
end
def gemfile
View
6 railties/test/generators/actions_test.rb
@@ -114,7 +114,7 @@ def test_gem_group_should_wrap_gems_in_a_group
action :gem_group, :test do
gem 'fakeweb'
end
-
+
assert_file 'Gemfile', /\ngroup :development, :test do\n gem "rspec-rails"\nend\n\ngroup :test do\n gem "fakeweb"\nend/
end
@@ -233,14 +233,14 @@ def test_route_should_add_data_to_the_routes_block_in_config_routes
def test_readme
run_generator
Rails::Generators::AppGenerator.expects(:source_root).times(2).returns(destination_root)
- assert_match(/Welcome to Rails/, action(:readme, "README"))
+ assert_match(/Welcome to Rails/, action(:readme, "README.rdoc"))
end
def test_readme_with_quiet
generator(default_arguments, :quiet => true)
run_generator
Rails::Generators::AppGenerator.expects(:source_root).times(2).returns(destination_root)
- assert_no_match(/Welcome to Rails/, action(:readme, "README"))
+ assert_no_match(/Welcome to Rails/, action(:readme, "README.rdoc"))
end
def test_log

0 comments on commit f79b257

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