class ToolsModuleTest < Minitest::Test def self.test_order :sorted end def test_console_A_run_console mock = MiniTest::Mock.new def mock.start *args; true; end Prompt::Console.stub :start, mock do assert_equal ToolsConsole.create_console.class, Array assert_equal (ToolsConsole.exec_console ['test']), true assert_equal (ToolsConsole.exec_console ['tes']), false assert_equal ToolsConsole.run_console.class, Minitest::Mock end end end