Don't break if __FILE__ is relative and backtrace isn't
This commit is contained in:
parent
46288ab002
commit
42db0125ac
|
@ -389,7 +389,7 @@ describe Pry do
|
|||
|
||||
describe "a fresh instance" do
|
||||
it "should use `caller` as its backtrace" do
|
||||
location = "#{__FILE__}:#{__LINE__ + 1}"
|
||||
location = "#{__FILE__}:#{__LINE__ + 1}"[1..-1] # omit leading .
|
||||
backtrace = Pry.new.backtrace
|
||||
|
||||
backtrace.should.not.be.nil
|
||||
|
|
Loading…
Reference in New Issue