Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (23 sloc) 0.565 kB
$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
Jump to Line
Something went wrong with that request. Please try again.