Sha256: 39e9c228e178ff88e204604559daf6cbf14e077727237eadc2ac7a383a3d4d75
Contents?: true
Size: 616 Bytes
Versions: 5
Compression:
Stored size: 616 Bytes
Contents
require File.dirname(__FILE__) + '/helper' class TestGeneratedSite < Test::Unit::TestCase def setup clear_dest source = File.join(File.dirname(__FILE__), *%w[source]) @s = Site.new(source, dest_dir) @s.process @index = File.read(File.join(dest_dir, 'index.html')) end def test_site_posts_in_index # confirm that {{ site.posts }} is working puts @s.posts.size assert @index.include?("#{@s.posts.size} Posts") end def test_post_content_in_index # confirm that the {{ post.content }} is rendered OK assert @index.include?('<p>This <em>is</em> cool</p>') end end
Version data entries
5 entries across 5 versions & 4 rubygems