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:
parent
4db25f1b8d
commit
f0e8ebbea4
2 changed files with 0 additions and 5 deletions
|
@ -29,7 +29,6 @@ class Pry
|
||||||
# Read the class name off of the singleton class to provide a default inspect.
|
# Read the class name off of the singleton class to provide a default inspect.
|
||||||
klass = (class << value; self; end).ancestors.first
|
klass = (class << value; self; end).ancestors.first
|
||||||
stringified = "#<#{klass}:0x#{value.__id__.to_s(16)}>"
|
stringified = "#<#{klass}:0x#{value.__id__.to_s(16)}>"
|
||||||
Helpers::BaseHelpers.stagger_output("output error: #{ex.inspect}", output) if ex
|
|
||||||
end
|
end
|
||||||
|
|
||||||
Helpers::BaseHelpers.stagger_output("=> #{Helpers::BaseHelpers.colorize_code(stringified)}", output)
|
Helpers::BaseHelpers.stagger_output("=> #{Helpers::BaseHelpers.colorize_code(stringified)}", output)
|
||||||
|
|
|
@ -36,9 +36,5 @@ describe Pry do
|
||||||
it "should not be phased by un-inspectable things" 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]+>/
|
mock_pry("class NastyClass; undef pretty_inspect; end", "NastyClass.new").should =~ /#<NastyClass:0x[0-9a-f]+>/
|
||||||
end
|
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
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue