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:
parent
08c8f52b23
commit
9cb54fd755
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue