1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Do not generate test/helpers directory for api apps

This commit is contained in:
Santiago Pastorino 2015-04-17 15:33:15 -03:00
parent 3847e485b6
commit 7b47e4250d
2 changed files with 2 additions and 0 deletions

View file

@ -268,6 +268,7 @@ module Rails
def delete_app_helpers_if_api_option
if options[:api]
remove_dir 'app/helpers'
remove_dir 'test/helpers'
end
end

View file

@ -81,6 +81,7 @@ class ApiAppGeneratorTest < Rails::Generators::TestCase
config/initializers/cookies_serializer.rb
config/initializers/session_store.rb
vendor/assets
test/helpers
tmp/cache/assets)
end
end