Permalink
Browse files

Added tests for #3751

  • Loading branch information...
1 parent 0cd3bf8 commit c8d7291b6b5736562b112007365317648ae2b790 @ganeshkumar ganeshkumar committed Nov 25, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 railties/lib/rails/generators/actions.rb
  2. +1 −1 railties/test/generators/actions_test.rb
View
2 railties/lib/rails/generators/actions.rb
@@ -68,7 +68,7 @@ def gem(*args)
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
View
2 railties/test/generators/actions_test.rb
@@ -113,7 +113,7 @@ def test_gem_group_should_wrap_gems_in_a_group
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

0 comments on commit c8d7291

Please sign in to comment.