mirror of
https://github.com/jekyll/jekyll.git
synced 2026-04-06 03:01:43 -04:00
Test fetching of static files
This commit is contained in:
@@ -310,7 +310,7 @@ module Jekyll
|
||||
"time" => self.time,
|
||||
"posts" => self.posts.sort { |a, b| b <=> a },
|
||||
"pages" => self.pages,
|
||||
"static_files" => self.static_files
|
||||
"static_files" => self.static_files,
|
||||
"html_pages" => self.pages.reject { |page| !page.html? },
|
||||
"categories" => post_attr_hash('categories'),
|
||||
"tags" => post_attr_hash('tags'),
|
||||
|
||||
@@ -169,6 +169,14 @@ class TestSite < Test::Unit::TestCase
|
||||
assert_equal posts.size - @num_invalid_posts, @site.posts.size
|
||||
end
|
||||
|
||||
should "expose jekyll version to site payload" do
|
||||
assert_equal Jekyll::VERSION, @site.site_payload['jekyll']['version']
|
||||
end
|
||||
|
||||
should "expose list of static files to site payload" do
|
||||
assert_equal @site.static_files, @site.site_payload['site']['static_files']
|
||||
end
|
||||
|
||||
should "deploy payload" do
|
||||
clear_dest
|
||||
@site.process
|
||||
|
||||
Reference in New Issue
Block a user