test/unit/hyde_test.rb in hydeweb-0.1.2 vs test/unit/hyde_test.rb in hydeweb-0.1.3
- old
+ new
@@ -5,14 +5,10 @@
@path = fixture('one')
@project = Project.new(@path)
Dir.chdir @path
end
- test "hi" do
- #y @project.pages.map { |page| y html: page.to_html, path: page.path, file: page.file }
- end
-
test "build" do
@project.pages.each { |page| page.write }
end
test "accessible" do
@@ -20,9 +16,10 @@
# site/hi.html
assert_equal Page['/cheers.html'].file, site['cheers.html.haml']
assert_equal Page['/hi.html'].file, site['hi.html']
assert_equal Page['/hi.yo'].file, site['hi.html']
+ assert_equal Page['/hi'].file, site['hi.html']
assert_equal Page['/css/style.css'].file, site['css/style.scss']
assert_equal Page['/css/style.css'].file, site['css/style.scss']
assert_equal Page['/about'].file, site['about/index.scss']
assert_equal Page['/'].file, site['/index.haml']
end