Skip to content

Commit

Permalink
Enable BoltSpec for plan testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jay7x committed Feb 21, 2023
1 parent 2350b44 commit 6601a1a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions .fixtures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
fixtures:
forge_modules:
ruby_task_helper: "puppetlabs/ruby_task_helper"
facts: "puppetlabs/facts"
6 changes: 6 additions & 0 deletions .sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ appveyor.yml:
delete: true
'spec/spec_helper.rb':
strict_level: ':error'
spec_overrides:
- "# BoltSpec setup"
- "# https://www.puppet.com/docs/bolt/latest/testing_plans.html"
- "require 'bolt_spec/plans'"
- "include BoltSpec::Plans"
- "BoltSpec::Plans.init"
Rakefile:
changelog_user: jay7x
Gemfile:
Expand Down
4 changes: 4 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,7 @@ def ensure_module_defined(module_name)
end

# 'spec_overrides' from sync.yml will appear below this line
# https://www.puppet.com/docs/bolt/latest/testing_plans.html
require 'bolt_spec/plans'
include BoltSpec::Plans
BoltSpec::Plans.init

0 comments on commit 6601a1a

Please sign in to comment.