aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application/generators_test.rb
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-11-09 20:54:24 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-11-09 20:59:16 +0900
commitd1e0bc7c17b1be2766e9fca228b4c61e01988b34 (patch)
treea79338fb0592219cb9bc402b3739e5a5e09243c1 /railties/test/application/generators_test.rb
parentbe6e1b8f7dbce1940f47339657faab2c1fdeaa54 (diff)
downloadrails-d1e0bc7c17b1be2766e9fca228b4c61e01988b34.tar.gz
rails-d1e0bc7c17b1be2766e9fca228b4c61e01988b34.tar.bz2
rails-d1e0bc7c17b1be2766e9fca228b4c61e01988b34.zip
Do not show credentials in generators help
Since credentials generator is executed via the credentials command and does not need to be executed directly, so it is not necessary to show it in help.
Diffstat (limited to 'railties/test/application/generators_test.rb')
-rw-r--r--railties/test/application/generators_test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/test/application/generators_test.rb b/railties/test/application/generators_test.rb
index 47c815d221..e5e557d204 100644
--- a/railties/test/application/generators_test.rb
+++ b/railties/test/application/generators_test.rb
@@ -188,10 +188,11 @@ module ApplicationTests
Rails::Command.send(:remove_const, "APP_PATH")
end
- test "help does not show hidden namespaces" do
+ test "help does not show hidden namespaces and hidden commands" do
FileUtils.cd(rails_root) do
output = rails("generate", "--help")
assert_no_match "active_record:migration", output
+ assert_no_match "credentials", output
output = rails("destroy", "--help")
assert_no_match "active_record:migration", output