2013-04-19 14:34:05 -07:00
|
|
|
require 'puppetlabs_spec_helper/module_spec_helper'
|
2015-08-04 11:52:01 -07:00
|
|
|
require 'shared_examples'
|
2016-09-30 13:34:25 -06:00
|
|
|
require 'puppet-openstack_spec_helper/facts'
|
2016-01-06 21:29:03 -07:00
|
|
|
|
2021-06-02 14:35:44 +09:00
|
|
|
fixture_path = File.expand_path(File.join(File.dirname(__FILE__), 'fixtures'))
|
|
|
|
|
2015-01-30 14:13:36 +01:00
|
|
|
RSpec.configure do |c|
|
|
|
|
c.alias_it_should_behave_like_to :it_configures, 'configures'
|
2015-08-04 11:52:01 -07:00
|
|
|
c.alias_it_should_behave_like_to :it_raises, 'raises'
|
2021-06-02 14:35:44 +09:00
|
|
|
|
|
|
|
c.module_path = File.join(fixture_path, 'modules')
|
|
|
|
c.manifest_dir = File.join(fixture_path, 'manifests')
|
2023-01-30 10:26:36 +09:00
|
|
|
|
|
|
|
c.mock_with :rspec
|
2015-01-30 14:13:36 +01:00
|
|
|
end
|
2015-08-04 11:52:01 -07:00
|
|
|
|
|
|
|
at_exit { RSpec::Puppet::Coverage.report! }
|