Test fetching of static files
This commit is contained in:
parent
6e40338f9e
commit
949aa3fc32
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue