Sha256: 7209f047d48a6ea261c2f163ccab7423bcc9ea34e92c1fa4bbc79183633fa324
Contents?: true
Size: 1.19 KB
Versions: 1
Compression:
Stored size: 1.19 KB
Contents
require_relative 'test_helper' describe 'Help Command' do include TestDsl include Columnize let(:available_commands) { Byebug::Command.commands.select(&:event).map(&:names).flatten.uniq.sort } it '"help" alone must show how to use "help"' do enter 'set width 50', 'help' debug_file 'help' check_output_includes \ 'Type "help <command-name>" for help on a specific command', 'Available commands:', columnize(available_commands, 50) end it 'must work when shortcut used' do enter 'h' debug_file 'help' check_output_includes \ 'Type "help <command-name>" for help on a specific command' end it 'must show an error if an undefined command is specified' do enter 'help foobar' debug_file 'help' check_output_includes \ 'Undefined command: "foobar". Try "help".', interface.error_queue end it 'must show a command\'s help' do enter 'help break' debug_file 'help' check_output_includes Byebug::AddBreakpoint.help(nil) end describe 'Post Mortem' do it 'must work in post-mortem mode' do enter 'cont', 'help' debug_file 'post_mortem' check_output_includes 'Available commands:' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
byebug-1.1.1 | test/help_test.rb |