Skip to content

Commit

Permalink
Modify tests to show that posts are missing
Browse files Browse the repository at this point in the history
  • Loading branch information
hazzik committed Oct 1, 2014
1 parent 280cf58 commit 51142b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/source/_layouts/archive.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Test
{{ page.posts.size }}
4 changes: 2 additions & 2 deletions test/test_jekyll_archives.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class TestJekyllArchives < Minitest::Test

should "generate archive pages with a layout" do
@site.process
assert_equal "Test", read_file("tag/test-tag/index.html")
assert_equal 2, read_file("tag/test-tag/index.html")
end
end

Expand Down Expand Up @@ -81,7 +81,7 @@ class TestJekyllArchives < Minitest::Test
should "use custom layout for specific type only" do
assert_equal "Test too", read_file("/2014/index.html")
assert_equal "Test too", read_file("/2013/index.html")
assert_equal "Test", read_file("/tag/test-tag/index.html")
assert_equal 2, read_file("/tag/test-tag/index.html")
end
end

Expand Down

0 comments on commit 51142b6

Please sign in to comment.