Sha256: d62cbb4436b7e90bb891bd501aa3728e1b9ec07d3e8cf5ff4e7184961bd3397b
Contents?: true
Size: 889 Bytes
Versions: 14
Compression:
Stored size: 889 Bytes
Contents
require File.expand_path('../../helper', __FILE__) class HydeTest < TestCase setup do @path = fixture('one') @project = Project.new(@path) Dir.chdir @path end test "build" do @project.pages.each { |page| page.write } end test "accessible" do site = lambda { |*a| File.join(@path, 'site', *a) } # 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 end
Version data entries
14 entries across 14 versions & 1 rubygems