File: spec_helper.rb

package info (click to toggle)
puppet-module-openstack-extras 27.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 524 kB
  • sloc: ruby: 951; sh: 62; python: 31; makefile: 10
file content (18 lines) | stat: -rw-r--r-- 553 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
if ENV.fetch('IMPLEMENTATION', 'puppet') == 'puppet'
  require 'puppetlabs_spec_helper/module_spec_helper'
else
  require 'voxpupuli/test/spec_helper'
end
require 'shared_examples'
require 'puppet-openstack_spec_helper/facts'

fixture_path = File.expand_path(File.join(File.dirname(__FILE__), 'fixtures'))

RSpec.configure do |c|
  c.alias_it_should_behave_like_to :it_configures, 'configures'
  c.alias_it_should_behave_like_to :it_raises, 'raises'

  c.module_path = File.join(fixture_path, 'modules')
end

at_exit { RSpec::Puppet::Coverage.report! }