test/test_generated_site.rb in jekyll-2.0.0.alpha.1 vs test/test_generated_site.rb in jekyll-2.0.0.alpha.2

- old
+ new

@@ -12,11 +12,11 @@ @site.process @index = File.read(dest_dir('index.html')) end should "ensure post count is as expected" do - assert_equal 38, @site.posts.size + assert_equal 39, @site.posts.size end should "insert site.posts into the index" do assert @index.include?("#{@site.posts.size} Posts") end @@ -41,9 +41,18 @@ end should "process other static files and generate correct permalinks" do assert File.exists?(dest_dir('/about/index.html')) assert File.exists?(dest_dir('/contacts.html')) + end + + should "print a nice list of static files" do + expected_output = Regexp.new <<-OUTPUT +- /css/screen.css last edited at \\d+ with extname .css +- /products.yml last edited at \\d+ with extname .yml +- /symlink-test/symlinked-dir/screen.css last edited at \\d+ with extname .css +OUTPUT + assert_match expected_output, File.read(dest_dir('static_files.html')) end end context "generating limited posts" do setup do