puppet-sahara/spec/spec_helper.rb
Emilien Macchi 7710b7e8eb Remove duplicate params and drop mock
This change removes the duplicate database_max_retries parameter from
the sahara class.

mock is not used anywhere in the module, let's drop it.
This patch will help to hit this bug:
https://launchpad.net/bugs/1492636

Change-Id: I0a3e57c8576e1451be5b0c039ce4f864339d4b5d
Closes-Bug: #1537251
2016-01-24 12:36:21 -05:00

19 lines
560 B
Ruby

require 'puppetlabs_spec_helper/module_spec_helper'
require 'shared_examples'
require 'puppet-openstack_spec_helper/defaults'
require 'rspec-puppet-facts'
include RspecPuppetFacts
RSpec.configure do |c|
c.alias_it_should_behave_like_to :it_configures, 'configures'
c.alias_it_should_behave_like_to :it_raises, 'raises'
# TODO(aschultz): remove this after all tests converted to use OSDefaults
# instead of referencing @default_facts
c.before :each do
@default_facts = OSDefaults.get_facts
end
end
at_exit { RSpec::Puppet::Coverage.report! }