diff options
author | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-01-18 01:06:34 +0200 |
---|---|---|
committer | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-01-18 01:15:19 +0200 |
commit | a2aa18f897dbcd503ed3b782258a44b21ca752bd (patch) | |
tree | e0e6db42466622dc1dd328234cdeb9226fd57e8e /railties/lib/rails/generators/test_unit | |
parent | 51c5bcbb39777b3861a44042a598bfb07d4e1fc1 (diff) | |
download | rails-a2aa18f897dbcd503ed3b782258a44b21ca752bd.tar.gz rails-a2aa18f897dbcd503ed3b782258a44b21ca752bd.tar.bz2 rails-a2aa18f897dbcd503ed3b782258a44b21ca752bd.zip |
Allow `false` for `config.generators.system_tests=`
Mention `config.generators.system_tests` in
the "Configuring Rails Applications" guide.
Diffstat (limited to 'railties/lib/rails/generators/test_unit')
-rw-r--r-- | railties/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb b/railties/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb index b6c13b41ae..e2e8b18eab 100644 --- a/railties/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb +++ b/railties/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb @@ -23,7 +23,7 @@ module TestUnit # :nodoc: template template_file, File.join("test/controllers", controller_class_path, "#{controller_file_name}_controller_test.rb") - unless options.api? || options[:system_tests].nil? + if !options.api? && options[:system_tests] template "system_test.rb", File.join("test/system", class_path, "#{file_name.pluralize}_test.rb") end end |