aboutsummaryrefslogblamecommitdiffstats
path: root/railties/test/command/base_test.rb
blob: 9132c8b4af2b7ee3f793fa3d8b200a243a57e859 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

                             



                                                  
                                                        



                                                                                
                                                                                                              
                                                                                                  

     
# frozen_string_literal: true

require "abstract_unit"
require "rails/command"
require "rails/commands/generate/generate_command"
require "rails/commands/secrets/secrets_command"
require "rails/commands/db/system/change/change_command"

class Rails::Command::BaseTest < ActiveSupport::TestCase
  test "printing commands" do
    assert_equal %w(generate), Rails::Command::GenerateCommand.printing_commands
    assert_equal %w(secrets:setup secrets:edit secrets:show), Rails::Command::SecretsCommand.printing_commands
    assert_equal %w(db:system:change), Rails::Command::Db::System::ChangeCommand.printing_commands
  end
end