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

does not show hidden namespaces in generator's help

This commit is contained in:
yuuji.yaginuma 2017-02-24 23:45:05 +09:00
parent bf388ecfc2
commit 87a8206dbc
2 changed files with 10 additions and 0 deletions

View file

@ -4,6 +4,9 @@ module Rails
module Command
class GenerateCommand < Base # :nodoc:
def help
require_application_and_environment!
load_generators
Rails::Generators.help self.class.command_name
end

View file

@ -184,5 +184,12 @@ module ApplicationTests
Rails::Command.send(:remove_const, "APP_PATH")
end
test "help does not show hidden namespaces" do
FileUtils.cd(rails_root) do
output = `bin/rails generate --help`
assert_no_match "active_record:migration", output
end
end
end
end