Sha256: 0ae1f6d05d626bb035537adcb87ec8f6ae9b0dd92ab197c5f7ac43a9e6365aff

Contents?: true

Size: 517 Bytes

Versions: 5

Compression:

Stored size: 517 Bytes

Contents

require File.dirname(__FILE__) + '/helper'

class TestSite < Test::Unit::TestCase
  def setup
    source = File.join(File.dirname(__FILE__), *%w[source])
    @s = Site.new(source, dest_dir)
  end
  
  def test_site_init
    
  end
  
  def test_read_layouts
    @s.read_layouts
    
    assert_equal ["default", "simple"].sort, @s.layouts.keys.sort
  end
 
  def test_read_posts
    @s.read_posts('')
    
    assert_equal 4, @s.posts.size
  end
  
  def test_write_posts
    clear_dest
    
    @s.process
  end
end

Version data entries

5 entries across 5 versions & 5 rubygems

Version Path
codeslinger-jekyll-0.3.0 test/test_site.rb
mojombo-jekyll-0.3.0 test/test_site.rb
qrush-jekyll-0.3.0.1 test/test_site.rb
tristandunn-jekyll-0.3.0 test/test_site.rb
jekyll-0.3.0 test/test_site.rb