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:
parent
bf388ecfc2
commit
87a8206dbc
2 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue