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

spec/pry_output_spec.rb: test colour leaks for Object literals

This ensures that CodeRay does not leak colours.
For more information see the following commit:

c544c1d699
This commit is contained in:
Kyrylo Silin 2013-10-24 00:51:36 +03:00
parent 08c8f52b23
commit 9cb54fd755

View file

@ -43,6 +43,10 @@ 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.*?>/
end
it "doesn't leak colour for object literals" do
mock_pry("Object.new").should =~ /=> #<Object:0x[a-z0-9]+>\n/
end
end
describe "color" do