test/show_test.rb in byebug-1.8.2 vs test/show_test.rb in byebug-2.0.0
- old
+ new
@@ -1,20 +1,10 @@
require_relative 'test_helper'
class TestShow < TestDsl::TestCase
-
- describe 'annotate' do
- it 'must show annotate setting' do
- enter 'show annotate'
- debug_file 'show'
- Byebug.annotate.must_equal 0
- check_output_includes 'Annotation level is 0'
- end
- end
-
describe 'args' do
- temporary_change_hash Byebug::Command.settings, :argv, %w{foo bar}
+ temporary_change_hash Byebug.settings, :argv, %w{foo bar}
describe 'default behaviour' do
it 'must show args' do
enter 'show args'
debug_file 'show'
@@ -107,15 +97,15 @@
debug_file 'show'
check_output_includes 'line tracing is off.'
end
end
- describe 'linetrace+' do
+ describe 'linetrace_plus' do
it 'must show default value' do
- enter 'show linetrace+'
+ enter 'show linetrace_plus'
debug_file 'show'
- check_output_includes 'line tracing style is every line.'
+ check_output_includes 'line tracing style is different consecutive lines.'
end
end
describe 'listsize' do
it 'must show listsize' do
@@ -123,23 +113,23 @@
debug_file 'show'
check_output_includes 'Number of source lines to list is 10.'
end
end
- describe 'trace' do
- it 'must show trace' do
- enter 'show trace'
+ describe 'stack_trace_on_error' do
+ it 'must show stack_trace_on_error' do
+ enter 'show stack_trace_on_error'
debug_file 'show'
check_output_includes 'Displaying stack trace is off.'
end
end
describe 'version' do
it 'must show version' do
enter 'show version'
debug_file 'show'
- check_output_includes "byebug #{Byebug::VERSION}"
+ check_output_includes "Byebug #{Byebug::VERSION}"
end
end
describe 'width' do
let(:cols) { `stty size`.scan(/\d+/)[1].to_i }
@@ -272,15 +262,6 @@
enter 'show', 'cont'
debug_file 'show'
check_output_includes /List of "show" subcommands:/
end
end
-
- describe 'Post Mortem' do
- it 'must work in post-mortem mode' do
- enter 'cont', 'show autolist'
- debug_file 'post_mortem'
- check_output_includes 'autolist is on.'
- end
- end
-
end