Sha256: c099f025c8b6657ba7518a5d7390f8c7cbab50e9db54eafea8f8ba6af4b7d8f8

Contents?: true

Size: 898 Bytes

Versions: 16

Compression:

Stored size: 898 Bytes

Contents

require_relative 'spec_helper'

describe 'redirection' do

  it 'redirects with debug_redirect' do
    breakpoints [
      [nil, 'redirection host'],
      ['n', nil],
      ['s', 'inside of level_a'],
      ['c', 'stop in level_c']
    ]
    Playground.new.redirection_host
  end

  it 'redirects within named step in' do
    breakpoints [
      [nil, 'redirection host'],
      ['s with_redirection', 'inside of level_a'],
      ['c', 'stop in level_c']
    ]
    Playground.new.redirection_host
  end

  it "doesn't redirect for step in everywhere" do
    breakpoints [
      [nil, 'redirection host'],
      ['n', nil],
      ['s +', 'at method_with_redirection'],
      ['c', 'stop in level_c']
    ]
    Playground.new.redirection_host
  end

  it "instantly redirects binding.pry" do
    breakpoints [
      [nil, 'some internal line']
    ]
    Playground.new.instant_redirection
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

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