Skip to content
This repository
Browse code

Added tests for #3751

  • Loading branch information...
commit c8d7291b6b5736562b112007365317648ae2b790 1 parent 0cd3bf8
Ganesh Kumar ganeshkumar authored
2  railties/lib/rails/generators/actions.rb
@@ -68,7 +68,7 @@ def gem(*args)
68 68 end
69 69
70 70 in_root do
71   - str = "gem #{parts.join(", ")}\n"
  71 + str = "\ngem #{parts.join(", ")}\n"
72 72 str = " " + str if @in_group
73 73 append_file "Gemfile", str, :verbose => false
74 74 end
2  railties/test/generators/actions_test.rb
@@ -113,7 +113,7 @@ def test_gem_group_should_wrap_gems_in_a_group
113 113 gem 'fakeweb'
114 114 end
115 115
116   - assert_file 'Gemfile', /\ngroup :development, :test do\n gem "rspec-rails"\nend\n\ngroup :test do\n gem "fakeweb"\nend/
  116 + assert_file 'Gemfile', /\ngroup :development, :test do\n \ngem "rspec-rails"\nend\n\ngroup :test do\n \ngem "fakeweb"\nend/
117 117 end
118 118
119 119 def test_environment_should_include_data_in_environment_initializer_block

0 comments on commit c8d7291

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