File: spec_helper.rb

package info (click to toggle)
ruby-puppet-syntax 4.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 312 kB
  • sloc: ruby: 672; makefile: 6
file content (24 lines) | stat: -rw-r--r-- 489 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
require 'rspec'
require 'puppet-syntax'

def fixture_hiera(list)
  fixture_files(list, 'hiera')
end

def fixture_templates(list)
  fixture_files(list, 'test_module/templates')
end

def fixture_manifests(list)
  fixture_files(list, 'test_module/manifests')
end

def fixture_files(list, path)
  list = [list].flatten
  list.map { |f| File.expand_path("../fixtures/#{path}/#{f}", __FILE__) }
end

RSpec.configure do |config|
  config.color     = true
  config.formatter = 'documentation'
end