Add the `method_source` gem to the default Gemfile

Fixes #18473
This commit is contained in:
Sean Griffin 2015-01-13 10:23:09 -07:00
parent 1302edf3e5
commit 0b2e0528df
3 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,7 @@
* Add the `method_source` gem to the default Gemfile for apps
*Sean Griffin*
* Drop old test locations from `rake stats`
- test/functional
- test/unit

View File

@ -36,6 +36,10 @@ group :development, :test do
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
<% end -%>
# Adds `Method#source` and `Method#comment` to get the source code of a
# method from the console
gem 'method_source'
<% end -%>
end

View File

@ -409,6 +409,13 @@ class AppGeneratorTest < Rails::Generators::TestCase
end
end
def test_inclusion_of_method_source
run_generator
assert_file "Gemfile" do |content|
assert_gem 'method_source'
end
end
def test_inclusion_of_doc
run_generator
assert_file 'Gemfile', /gem 'sdoc',\s+'~> 0.4.0',\s+group: :doc/