test/unit/page_test.rb in hydeweb-0.1.10 vs test/unit/page_test.rb in hydeweb-0.1.11
- old
+ new
@@ -39,18 +39,11 @@
assert Page['/'].html?
assert_equal 'text/css', Page['/css/style.css'].mime_type
assert_equal 'text/html', Page['/about/us.html'].mime_type
assert_equal 'html', Page['/about/us.html'].default_ext
assert_equal 'css', Page['/css/style.css'].default_ext
-
- assert_equal 'image/jpeg', Page['/images/foo.jpg'].mime_type
end
- test "ext" do
- assert_equal '.html', Page['/'].ext
- assert_equal '.jpg', Page['/images/foo.jpg'].ext
- end
-
test "no layout" do
page = Page['/hi.html']
assert_equal false, page.meta.layout
assert_equal nil, page.layout
assert_equal false, page.layout?