From 555722887d8c7c4af13b0cd6bd77d7ddd39b117d Mon Sep 17 00:00:00 2001 From: Ashwin Maroli Date: Fri, 15 Mar 2019 23:03:13 +0530 Subject: [PATCH] Replace `name` in Page#inspect with relative_path (#7434) Merge pull request 7434 --- lib/jekyll/page.rb | 2 +- test/test_page_without_a_file.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/jekyll/page.rb b/lib/jekyll/page.rb index c777044c..e6d691c2 100644 --- a/lib/jekyll/page.rb +++ b/lib/jekyll/page.rb @@ -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. diff --git a/test/test_page_without_a_file.rb b/test/test_page_without_a_file.rb index 58610307..f0670696 100644 --- a/test/test_page_without_a_file.rb +++ b/test/test_page_without_a_file.rb @@ -34,7 +34,7 @@ class TestPageWithoutAFile < JekyllUnitTest end should "identify itself properly" do - assert_equal "#", @page.inspect + assert_equal '#', @page.inspect end should "not have page-content and page-data defined within it" do