Sha256: 9edc3dadbea59b821499bcc8c75de7b7bb46dccf519e04be25a535003824b373

Contents?: true

Size: 752 Bytes

Versions: 6

Compression:

Stored size: 752 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

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pry-moves-0.1.13 spec/redirection_spec.rb
pry-moves-0.1.12 spec/redirection_spec.rb
pry-moves-0.1.10 spec/redirection_spec.rb
pry-moves-0.1.9 spec/redirection_spec.rb
pry-moves-0.1.8 spec/redirection_spec.rb
pry-moves-0.1.7 spec/redirection_spec.rb