Sha256: e291bdd4b58c7a490d0861164098cd36798eed7d3d83277ef8c831ecc46284b9

Contents?: true

Size: 672 Bytes

Versions: 6

Compression:

Stored size: 672 Bytes

Contents

require_relative 'test_helper'

class TestPostMortem < TestDsl::TestCase

  it 'must enter into post mortem mode' do
    enter 'cont'
    debug_file('post_mortem') { Byebug.post_mortem?.must_equal true }
  end

  it 'must stop at the correct line' do
    enter 'cont'
    debug_file('post_mortem') { state.line.must_equal 8 }
  end

  it 'must exit from post mortem mode after stepping command' do
    enter 'cont', 'break 12', 'cont'
    debug_file('post_mortem') { Byebug.post_mortem?.must_equal false }
  end

  it 'must save the raised exception' do
    enter 'cont'
    debug_file('post_mortem') {
      Byebug.last_exception.must_be_kind_of RuntimeError }
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
byebug-1.5.0 test/post_mortem_test.rb
byebug-1.4.2 test/post_mortem_test.rb
byebug-1.4.1 test/post_mortem_test.rb
byebug-1.4.0 test/post_mortem_test.rb
byebug-1.3.1 test/post_mortem_test.rb
byebug-1.3.0 test/post_mortem_test.rb