Sha256: f688407784590132a9a67a60383ce353177a0f5ecdd241feca88e847b65efff8
Contents?: true
Size: 1.1 KB
Versions: 2
Compression:
Stored size: 1.1 KB
Contents
require_relative 'spec_helper' describe 'PryMoves Commands' do it 'should backtrace' do breakpoints [ [nil, 'stop in level_c'], ['bt', lambda{|b, out| lines = out.split("\n").reverse expect(lines[0]).to end_with 'Playground#level_c(param=?) :method' expect(lines[1]).to end_with 'Playground#level_a() :method' expect(lines[2]).to include 'Playground:' expect(lines[3]).to end_with ':block' expect(lines[4]).to include 'RSpec::ExampleGroups' expect(lines.count).to be 5 }], ['bt all', lambda{|b, out| lines = out.split("\n").reverse # show hidden frame expect(lines[1]).to end_with 'Playground#level_b() :method' expect(lines.count).to be 6 }], ['bt 2', lambda{|b, out| lines = out.split("\n").reverse expect(lines[0]).to end_with 'Playground#level_c(param=?) :method' expect(lines[1]).to end_with 'Playground#level_a() :method' expect(lines[3]).to start_with 'Latest 2 lines' expect(lines.count).to be 4 }], ] Playground.new.level_a end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pry-moves-0.1.6 | spec/backtrace_spec.rb |
pry-moves-0.1.5 | spec/backtrace_spec.rb |