Replace `name` in Page#inspect with relative_path (#7434)
Merge pull request 7434
This commit is contained in:
parent
ec730657a7
commit
555722887d
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue