Permalink
Browse files

Merge pull request #3752 from ganeshkumar/gem_lending

Added tests for #3751
  • Loading branch information...
2 parents 0cd3bf8 + c8d7291 commit 4565c871a63dddcb9543eb5be315f152ac551c17 @josevalim josevalim 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
@@ -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
@@ -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 4565c87

Please sign in to comment.