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:
parent
3847e485b6
commit
7b47e4250d
2 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue