Try to fix failing whereami test on 1.8 etc

Explicitly calling to_s before appending wth + "\n"
This commit is contained in:
John Mair 2013-02-03 11:21:45 +01:00
parent e1c1720226
commit 2d8fcb06a4
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ class Pry
set_file_and_dir_locals(@file)
out = "\n#{text.bold('From:')} #{location}:\n\n" +
code.with_line_numbers(use_line_numbers?).with_marker(marker) + "\n"
code.with_line_numbers(use_line_numbers?).with_marker(marker).to_s + "\n"
stagger_output(out)
end