Sha256: 67fd0c40a1652fd751d0cedb80d1d394cb2c3a28f16897c913717a25c79a60d6
Contents?: true
Size: 492 Bytes
Versions: 1
Compression:
Stored size: 492 Bytes
Contents
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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tools-0.4.5 | test/mini_console.rb |