2012-06-18 23:12:32 +00:00
|
|
|
require 'puppetlabs_spec_helper/module_spec_helper'
|
2014-01-29 20:39:41 +00:00
|
|
|
require 'shared_examples'
|
2016-09-30 19:20:35 +00:00
|
|
|
require 'puppet-openstack_spec_helper/facts'
|
2016-01-07 04:28:13 +00:00
|
|
|
|
2014-01-29 20:39:41 +00:00
|
|
|
RSpec.configure do |c|
|
2014-05-15 18:59:31 +00:00
|
|
|
c.alias_it_should_behave_like_to :it_configures, 'configures'
|
2014-01-29 20:39:41 +00:00
|
|
|
c.alias_it_should_behave_like_to :it_raises, 'raises'
|
|
|
|
end
|
2014-10-20 21:45:21 +00:00
|
|
|
|
|
|
|
def verify_concat_fragment_contents(subject, title, expected_lines)
|
|
|
|
content = subject.resource('concat::fragment', title).send(:parameters)[:content]
|
2016-07-11 15:06:08 +00:00
|
|
|
expect(expected_lines & content.split("\n")).to eq(expected_lines)
|
2014-10-20 21:45:21 +00:00
|
|
|
end
|
2015-08-04 18:48:38 +00:00
|
|
|
|
|
|
|
at_exit { RSpec::Puppet::Coverage.report! }
|