Skip to content

Commit

Permalink
Test case for #85
Browse files Browse the repository at this point in the history
  • Loading branch information
David Rodríguez de Dios committed Sep 30, 2014
1 parent c3b9265 commit e6813c4
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions test/commands/stepping_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -189,4 +189,29 @@ def test_next_steps_over_rescue_when_raising_from_ruby_method
debug_proc(example_raise) { assert_equal 168, state.line }
end
end

class SteppingAndBacktracesExample
def a
r = b
r += 1
end

def b
r = 2
r += 1
end
end

class StepUpNextTestCase < TestCase
def test_step_the_up_then_next_advances_in_the_upper_frame
example_up = -> do
byebug

SteppingAndBacktracesExample.new.a
end

enter 'b 195', 'cont', 'step', 'up', 'next'
debug_proc(example_up) { assert_equal 196, state.line }
end
end
end

0 comments on commit e6813c4

Please sign in to comment.