Sha256: 5fb11e456c3e534c068389c4238cec59f6f3124f27af9f8a49fdc483df72e66d
Contents?: true
Size: 1.71 KB
Versions: 3
Compression:
Stored size: 1.71 KB
Contents
require_relative 'spec_helper' describe 'PryMoves commands' do it 'should make one move next' do breakpoints [ [nil, 'basic next stop'], ['n', 'next step'], ] Playground.new.basic_next end it 'should stop on second binding.pry' do breakpoints [ [nil, 'first stop'], ['c', 'second stop'], ] Playground.new.continue end it 'should walk over stack' do breakpoints [ [nil, 'step_into stop'], ['s', 'point to step inside'], ['s', 'some internal line'], ['up', 'point to step inside'], ['up', 'spec example beginning' ], #['up', {output_includes: 'top of stack'} ], ['down', 'point to step inside'], ['down', 'some internal line'], ['down', {output_includes: 'bottom of stack'} ], ] Playground.new.step_into # spec example beginning end it 'should go next over recursion calls' do breakpoints [ [nil, nil], ['n', 'next step'], ['n', 'should stop here after 2 next-s'], ['depth', {output: '=> 0'}], ] Playground.new.recursion end it 'should stop after finishing early return' do breakpoints [ [nil, 'stop in level_c'], ['f', 'at early return'], ['f', 'after early return'] ] Playground.new.early_return_wrap end it 'should debug' do breakpoints [ [nil, 'basic next stop'], ['debug level_a', 'inside of level_a'], ['n', 'basic next stop'] ] Playground.new.basic_next end it 'should next breakpoint' do breakpoints [ [nil, 'method_with_breakpoints host'], ['b', 'breakpoint'], ['n', 'after breakpoint'], ['b', 'breakpoint 2'] ] Playground.new.method_with_breakpoints end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pry-moves-1.0.2 | spec/commands_spec.rb |
pry-moves-1.0.1 | spec/commands_spec.rb |
pry-moves-1.0.0 | spec/commands_spec.rb |