Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 32 lines (23 sloc) 0.565 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))

require 'puppet_docs'
require 'spec'
require 'spec/autorun'

module ViewHelper

  def change_layout
    change { PuppetDocs::View.layout }
  end

end

module FixtureHelper

  def fixtures_root
    @fixtures_root ||= Pathname.new(__FILE__).parent + 'fixtures'
  end

  def fixture(name)
    (fixtures_root + name).read
  end

end

Spec::Runner.configure do |config|
  config.mock_with :mocha
  config.include ViewHelper
  config.include FixtureHelper
end
Something went wrong with that request. Please try again.