puppet-strings/spec/spec_helper.rb

18 lines
320 B
Ruby

require 'mocha'
require 'rspec'
require 'puppet-strings'
require 'puppet-strings/yard'
# Explicitly set up YARD once
PuppetStrings::Yard.setup!
RSpec.configure do |config|
config.mock_with :mocha
config.before(:each) do
# Always clear the YARD registry before each example
YARD::Registry.clear
end
end