Replace `name` in Page#inspect with relative_path (#7434)

Merge pull request 7434
This commit is contained in:
Ashwin Maroli 2019-03-15 23:03:13 +05:30 committed by jekyllbot
parent ec730657a7
commit 555722887d
2 changed files with 2 additions and 2 deletions

View File

@ -162,7 +162,7 @@ module Jekyll
# Returns the object as a debug String.
def inspect
"#<#{self.class} @name=#{name.inspect}>"
"#<#{self.class} @relative_path=#{relative_path.inspect}>"
end
# Returns the Boolean of whether this Page is HTML or not.

View File

@ -34,7 +34,7 @@ class TestPageWithoutAFile < JekyllUnitTest
end
should "identify itself properly" do
assert_equal "#<Jekyll::PageWithoutAFile @name=\"properties.html\">", @page.inspect
assert_equal '#<Jekyll::PageWithoutAFile @relative_path="properties.html">', @page.inspect
end
should "not have page-content and page-data defined within it" do