mirror of https://github.com/rails/rails
Merge pull request #3752 from ganeshkumar/gem_lending
Added tests for #3751
This commit is contained in:
commit
4565c871a6
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue