aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorganesh <ganesh.dc@gmail.com>2011-11-25 14:55:28 +0530
committerganesh <ganesh.dc@gmail.com>2011-11-25 14:55:28 +0530
commitc8d7291b6b5736562b112007365317648ae2b790 (patch)
tree3db2da005718236ee41fe402e6997e65b00e0bdb /railties
parent0cd3bf84068dd2b2d0bbb26062f2cdc7093a1b04 (diff)
downloadrails-c8d7291b6b5736562b112007365317648ae2b790.tar.gz
rails-c8d7291b6b5736562b112007365317648ae2b790.tar.bz2
rails-c8d7291b6b5736562b112007365317648ae2b790.zip
Added tests for #3751
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/generators/actions.rb2
-rw-r--r--railties/test/generators/actions_test.rb2
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