diff options
author | José Valim <jose.valim@gmail.com> | 2011-11-25 01:51:56 -0800 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-11-25 01:51:56 -0800 |
commit | 4565c871a63dddcb9543eb5be315f152ac551c17 (patch) | |
tree | 3db2da005718236ee41fe402e6997e65b00e0bdb /railties | |
parent | 0cd3bf84068dd2b2d0bbb26062f2cdc7093a1b04 (diff) | |
parent | c8d7291b6b5736562b112007365317648ae2b790 (diff) | |
download | rails-4565c871a63dddcb9543eb5be315f152ac551c17.tar.gz rails-4565c871a63dddcb9543eb5be315f152ac551c17.tar.bz2 rails-4565c871a63dddcb9543eb5be315f152ac551c17.zip |
Merge pull request #3752 from ganeshkumar/gem_lending
Added tests for #3751
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators/actions.rb | 2 | ||||
-rw-r--r-- | railties/test/generators/actions_test.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/generators/actions.rb b/railties/lib/rails/generators/actions.rb index b26839644e..184cb2866b 100644 --- a/railties/lib/rails/generators/actions.rb +++ b/railties/lib/rails/generators/actions.rb @@ -68,7 +68,7 @@ module Rails end in_root do - str = "gem #{parts.join(", ")}\n" + str = "\ngem #{parts.join(", ")}\n" str = " " + str if @in_group append_file "Gemfile", str, :verbose => false end diff --git a/railties/test/generators/actions_test.rb b/railties/test/generators/actions_test.rb index 51fa2fe16f..917b196777 100644 --- a/railties/test/generators/actions_test.rb +++ b/railties/test/generators/actions_test.rb @@ -113,7 +113,7 @@ class ActionsTest < Rails::Generators::TestCase gem 'fakeweb' end - assert_file 'Gemfile', /\ngroup :development, :test do\n gem "rspec-rails"\nend\n\ngroup :test do\n gem "fakeweb"\nend/ + assert_file 'Gemfile', /\ngroup :development, :test do\n \ngem "rspec-rails"\nend\n\ngroup :test do\n \ngem "fakeweb"\nend/ end def test_environment_should_include_data_in_environment_initializer_block |