Merge pull request #3752 from ganeshkumar/gem_lending

Added tests for #3751
This commit is contained in:
José Valim 2011-11-25 01:51:56 -08:00
commit 4565c871a6
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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