Sha256: 7a04121674b3c2b0d05f75b0481dcc036a29fe581ffaf1a0b5d57be1403c4f8f

Contents?: true

Size: 586 Bytes

Versions: 4

Compression:

Stored size: 586 Bytes

Contents

require 'rubygems'
require 'test/unit'
require 'contest'

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'hyde'

class Test::Unit::TestCase
  include Hyde::Utils
  def assert_same_file(a, b)
    assert same_file?(a, b)
  end

  def get_project(site)
    Hyde::Project.new fixture(site)
  end

  def fixture(site)
    File.join File.dirname(__FILE__), 'fixtures', site
  end
end

module Hyde
  class Project
    # Can throw a NotFound. Get rid of this!
    def render(path)
      self[path].render
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hydeweb-0.0.8.pre2 test/helper.rb
hydeweb-0.0.8.pre1 test/helper.rb
hydeweb-0.0.7 test/helper.rb
hydeweb-0.0.5 test/helper.rb