29 lines
798 B
Ruby
29 lines
798 B
Ruby
require 'rspec'
|
|
require 'chefspec'
|
|
require 'chef/sugar'
|
|
require 'chef/version'
|
|
|
|
require_relative 'support/shared_examples'
|
|
|
|
RSpec.configure do |config|
|
|
# Prohibit using the should syntax
|
|
config.expect_with :rspec do |spec|
|
|
spec.syntax = :expect
|
|
end
|
|
|
|
# Focus groups
|
|
config.filter_run(focus: true)
|
|
config.run_all_when_everything_filtered = true
|
|
|
|
# Run specs in random order to surface order dependencies. If you find an
|
|
# order dependency and want to debug it, you can fix the order by providing
|
|
# the seed, which is printed after each run.
|
|
# --seed 1234
|
|
config.order = 'random'
|
|
|
|
# ChefSpec configuration
|
|
config.log_level = :fatal
|
|
|
|
config.filter_run_excluding pre_chef16_only: Gem::Requirement.new(">= 16.0.257").satisfied_by?(Gem::Version.new(Chef::VERSION))
|
|
end
|