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

- 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 39, @site.posts.size + assert_equal 41, @site.posts.size end should "insert site.posts into the index" do assert @index.include?("#{@site.posts.size} Posts") end @@ -31,24 +31,25 @@ assert_equal 1, published.size assert_equal "published.html", published.first end should "hide unpublished page" do - assert !File.exists?(dest_dir('/unpublished.html')) + assert !File.exist?(dest_dir('/unpublished.html')) end should "not copy _posts directory" do assert !File.exist?(dest_dir('_posts')) 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')) + assert File.exist?(dest_dir('/about/index.html')) + assert File.exist?(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 +- /pgp.key last edited at \\d+ with extname .key - /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