1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

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

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