diff --git a/lib/jekyll/page.rb b/lib/jekyll/page.rb index 965786a0..c1691156 100644 --- a/lib/jekyll/page.rb +++ b/lib/jekyll/page.rb @@ -161,7 +161,7 @@ module Jekyll # Returns the object as a debug String. def inspect - "#" + "#<#{self.class} @name=#{name.inspect}>" end # Returns the Boolean of whether this Page is HTML or not. diff --git a/lib/jekyll/page_without_a_file.rb b/lib/jekyll/page_without_a_file.rb index 2d30af51..e314f970 100644 --- a/lib/jekyll/page_without_a_file.rb +++ b/lib/jekyll/page_without_a_file.rb @@ -10,9 +10,5 @@ module Jekyll def read_yaml(*) @data ||= {} end - - def inspect - "#" - end end end diff --git a/test/test_page_without_a_file.rb b/test/test_page_without_a_file.rb index 2933bfc8..58610307 100644 --- a/test/test_page_without_a_file.rb +++ b/test/test_page_without_a_file.rb @@ -33,6 +33,10 @@ class TestPageWithoutAFile < JekyllUnitTest @page = setup_page("properties.html") end + should "identify itself properly" do + assert_equal "#", @page.inspect + end + should "not have page-content and page-data defined within it" do assert_equal "pages", @page.type.to_s assert_nil @page.content