test/test.rb in octopress-ink-1.0.0.alpha.29 vs test/test.rb in octopress-ink-1.0.0.alpha.30
- old
+ new
@@ -1,7 +1,6 @@
require 'colorator'
-ENV['OCTOPRESS_ENV'] = 'TEST'
@has_failed = false
@failures = {}
def pout(str)
@@ -38,14 +37,25 @@
end
build
def test_tags(dir)
- tags = %w{content_for include assign capture wrap render}
+ tags = %w{content_for abort_false include assign capture wrap render filter}
tags.each { |file| test("test_tags/#{file}.html", dir) }
+ if File.exist? "site/test_tags/abort_true.html"
+ @has_failed = true
+ @failures['abort_true.html'] = "File 'abort_true.html' should not exist"
+ pout "F".red
+ else
+ pout ".".green
+ end
end
+def test_post(dir)
+ test("2014/02/01/test-post.html", dir)
+end
+
def test_layouts(dir)
layouts = %w{local plugin_layout theme theme_override}
layouts.each { |file| test("test_layouts/#{file}.html", dir) }
end
@@ -88,9 +98,10 @@
else
puts "All passed!".green
end
end
+test_post('expected')
test_tags('expected')
test_layouts('expected')
test_stylesheets('concat_css')
test_configs('expected')
test_root_assets('expected')