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

Remove confusing warning on output error.

This commit is contained in:
Conrad Irwin 2011-09-14 15:47:09 -07:00
parent 4db25f1b8d
commit f0e8ebbea4
2 changed files with 0 additions and 5 deletions

View file

@ -29,7 +29,6 @@ class Pry
# Read the class name off of the singleton class to provide a default inspect.
klass = (class << value; self; end).ancestors.first
stringified = "#<#{klass}:0x#{value.__id__.to_s(16)}>"
Helpers::BaseHelpers.stagger_output("output error: #{ex.inspect}", output) if ex
end
Helpers::BaseHelpers.stagger_output("=> #{Helpers::BaseHelpers.colorize_code(stringified)}", output)

View file

@ -36,9 +36,5 @@ describe Pry do
it "should not be phased by un-inspectable things" do
mock_pry("class NastyClass; undef pretty_inspect; end", "NastyClass.new").should =~ /#<NastyClass:0x[0-9a-f]+>/
end
it "should warn you about un-inspectable things" do
mock_pry("class NastyClass; undef pretty_inspect; end", "NastyClass.new").should =~ /output error: #<(NoMethodError|NameError): undefined method `pretty_inspect'/
end
end
end