Sha256: a50958fd290def633c1b1836c2a8624b8f613b3bd23765a4be01831f7e63bb13

Contents?: true

Size: 675 Bytes

Versions: 11

Compression:

Stored size: 675 Bytes

Contents

$:.push File.expand_path('../../lib', __FILE__)

require 'rubygems'  if !Object.respond_to?(:gem)

gem "contest", "~> 0.1"

require 'hyde'
require 'contest'

class TestCase < Test::Unit::TestCase
  # Shorthand
  Page    = Hyde::Page
  Project = Hyde::Project

  def fixture(*a)
    path = File.expand_path('../fixture', __FILE__)
    File.join path, *a
  end

  def build(path)
    @project = Hyde::Project.new(path)
    @project.pages.each { |p| p.write }
    @project
  end

  def unbuild(project=@project)
    FileUtils.rm_rf project.path(:output)
  end
end

class Hyde::Set
  # Because 1.8.6 doesn't support map(&:path)
  def paths
    map { |page| page.path }
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
hydeweb-0.2.3 test/helper.rb
hydeweb-0.2.2 test/helper.rb
hydeweb-0.1.14 test/helper.rb
hydeweb-0.1.13 test/helper.rb
hydeweb-0.1.12 test/helper.rb
hydeweb-0.1.11 test/helper.rb
hydeweb-0.1.10 test/helper.rb
hydeweb-0.1.9 test/helper.rb
hydeweb-0.1.8 test/helper.rb
hydeweb-0.1.7 test/helper.rb
hydeweb-0.1.6 test/helper.rb