From 42db0125ac3a94a61b807b33043937a14fcadb97 Mon Sep 17 00:00:00 2001 From: Ryan Fitzgerald Date: Sat, 27 Jul 2013 16:13:54 -0700 Subject: [PATCH] Don't break if __FILE__ is relative and backtrace isn't --- spec/pry_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/pry_spec.rb b/spec/pry_spec.rb index 09a199d2..8331619d 100644 --- a/spec/pry_spec.rb +++ b/spec/pry_spec.rb @@ -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