mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
parent
1302edf3e5
commit
0b2e0528df
3 changed files with 15 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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/
|
||||
|
|
Loading…
Reference in a new issue