Sha256: b24d94e8c64149cb71a691beaa657acb5b6ca81b6fd6d1385fb100500ec42f4f

Contents?: true

Size: 584 Bytes

Versions: 6

Compression:

Stored size: 584 Bytes

Contents

module Byebug
  class DeleteTestCase < TestCase
    def setup
      @example = -> do
        byebug
        x = 1
        x += 1
        return x
      end

      super
    end

    def test_deleting_a_breakpoint_removes_it_from_breakpoints_list
      enter 'break 7', -> { "delete #{Breakpoint.first.id}" }

      debug_proc(@example) { assert_empty Byebug.breakpoints }
    end

    def test_does_not_stop_at_the_deleted_breakpoint
      enter 'b 7', 'b 8', -> { "delete #{Breakpoint.first.id}" }, 'cont'

      debug_proc(@example) { assert_equal 8, state.line }
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
byebug-3.5.1 test/commands/delete_test.rb
byebug-3.5.0 test/commands/delete_test.rb
byebug-3.4.2 test/commands/delete_test.rb
byebug-3.4.1 test/commands/delete_test.rb
byebug-3.4.0 test/commands/delete_test.rb
byebug-3.3.0 test/commands/delete_test.rb