Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 70d05aa384
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 31 lines (22 sloc) 0.763 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
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'rspec'
require 'chef-jenkins'

# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories.
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}


module AH
  ASSET_DIR = File.join(File.dirname(__FILE__), "assets")
  INFLIGHT = File.join(File.dirname(__FILE__), "in-flight")

  def self.reset!
    system("rm -rf #{INFLIGHT}")
    system("mkdir -p #{INFLIGHT}")
    system("cp -r #{File.expand_path(File.join(ASSET_DIR, "*"))} #{INFLIGHT}")
    true
  end

  def self.file(filename)
    File.expand_path(File.join(INFLIGHT, filename))
  end

end

RSpec.configure do |config|
  
end
Something went wrong with that request. Please try again.