Sha256: 8e7eedd53dd324856b019293c31539cb7d6d66f10523cc017407cfed007ce9a8
Contents?: true
Size: 941 Bytes
Versions: 3
Compression:
Stored size: 941 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 "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 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['/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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hydeweb-0.1.2 | test/unit/hyde_test.rb |
hydeweb-0.1.1 | test/unit/hyde_test.rb |
hydeweb-0.1.0 | test/unit/hyde_test.rb |