Fix tests for document drop JSONification based on master updates. /cc #4914

This commit is contained in:
Parker Moore 2016-05-25 16:04:16 -07:00
parent e56e58e498
commit aff1430608
No known key found for this signature in database
GPG Key ID: 193CDEBA72063C58
1 changed files with 3 additions and 2 deletions

View File

@ -50,7 +50,8 @@ class TestDocument < JekyllUnitTest
assert_equal "Jekyll.configuration", parsed["title"] assert_equal "Jekyll.configuration", parsed["title"]
assert_equal "foo.bar", parsed["whatever"] assert_equal "foo.bar", parsed["whatever"]
assert_equal nil, parsed["previous"] assert_equal "_methods/collection/entries", parsed["previous"]["path"]
assert_equal "Collection#entries", parsed["previous"]["title"]
next_doc = parsed["next"] next_doc = parsed["next"]
assert_equal "_methods/escape-+ #%20[].md", next_doc["path"] assert_equal "_methods/escape-+ #%20[].md", next_doc["path"]
@ -60,7 +61,7 @@ class TestDocument < JekyllUnitTest
assert_equal "Jekyll.configuration", next_prev_doc["title"] assert_equal "Jekyll.configuration", next_prev_doc["title"]
assert_equal "_methods/configuration.md", next_prev_doc["path"] assert_equal "_methods/configuration.md", next_prev_doc["path"]
assert_equal "_methods/escape-+ #%20[].md", next_prev_doc["next"]["path"] assert_equal "_methods/escape-+ #%20[].md", next_prev_doc["next"]["path"]
assert_nil next_prev_doc["previous"] # nothing before Jekyll.configuration assert_equal "_methods/collection/entries", next_prev_doc["previous"]["path"]
assert_nil next_prev_doc["next"]["next"] assert_nil next_prev_doc["next"]["next"]
assert_nil next_prev_doc["next"]["previous"] assert_nil next_prev_doc["next"]["previous"]
assert_nil next_prev_doc["next"]["content"] assert_nil next_prev_doc["next"]["content"]