Sha256: 929b2ea96b37dc3e4b2178bd183bdb4bc61d6725f227449971d835526e2f0fb4

Contents?: true

Size: 1.15 KB

Versions: 16

Compression:

Stored size: 1.15 KB

Contents

require_relative 'spec_helper'

describe 'step' do

  it 'should step into func by name' do
    breakpoints [
      [nil, 'stop in step_by_name'],
      ['s level_c', 'stop in level_c'],
      ['param', {output: '=> :target'}],
      ['n', nil],
    ]
    Playground.new.step_by_name
  end

  it 'should stop after inability to step into func by name' do
    breakpoints [
      [nil, 'stop in step_by_name'],
      ['s absent_function', 'after_step_by_name'],
    ]
    Playground.new.step_by_name_wrap
  end

  it 'should skip hidden frames' do
    breakpoints [
      [nil, 'skip_hidden_impl stop'],
      ['s', 'point to step inside'],
      ['s', 'some internal line']
    ]
    Playground.new.skip_hidden_impl
  end

  it 'should step down to hidden frame and resume there' do
    breakpoints [
      [nil, 'at root'],
      ['down', 'hidden stop'],
      ['n', 'hidden_stop for next'],
      ['s', 'hidden_stop for step']
    ]
    Playground.new.hidden_stop # at root
  end

  it 'should skip hidden method' do
    breakpoints [
      [nil, 'stop in skip_test'],
      ['n', 'next step'],
      ['s', 'at not_skipped_method']
    ]
    Playground.new.skip_test
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
pry-moves-1.0.15 spec/step_spec.rb
pry-moves-1.0.14 spec/step_spec.rb
pry-moves-1.0.13 spec/step_spec.rb
pry-moves-1.0.12 spec/step_spec.rb
pry-moves-1.0.11 spec/step_spec.rb
pry-moves-1.0.10 spec/step_spec.rb
pry-moves-1.0.9 spec/step_spec.rb
pry-moves-1.0.8 spec/step_spec.rb
pry-moves-1.0.7 spec/step_spec.rb
pry-moves-1.0.6 spec/step_spec.rb
pry-moves-1.0.5 spec/step_spec.rb
pry-moves-1.0.4 spec/step_spec.rb
pry-moves-1.0.3 spec/step_spec.rb
pry-moves-1.0.2 spec/step_spec.rb
pry-moves-1.0.1 spec/step_spec.rb
pry-moves-1.0.0 spec/step_spec.rb