spec_helper.rb 535 B

12345678910111213
  1. # Load libraries from openstacklib here to simulate how they live together in a real puppet run (for provider unit tests)
  2. $LOAD_PATH.push(File.join(File.dirname(__FILE__), 'fixtures', 'modules', 'openstacklib', 'lib'))
  3. require 'puppetlabs_spec_helper/module_spec_helper'
  4. require 'shared_examples'
  5. require 'puppet-openstack_spec_helper/facts'
  6. RSpec.configure do |c|
  7. c.alias_it_should_behave_like_to :it_configures, 'configures'
  8. c.alias_it_should_behave_like_to :it_raises, 'raises'
  9. end
  10. at_exit { RSpec::Puppet::Coverage.report! }