lib/bolt_spec/bolt_context.rb in bolt-2.7.0 vs lib/bolt_spec/bolt_context.rb in bolt-2.8.0
- old
+ new
@@ -136,11 +136,11 @@
end
# Override in your tests
def config
@config ||= begin
- conf = Bolt::Config.new(Bolt::Boltdir.new('.'), {})
+ conf = Bolt::Config.new(Bolt::Project.new('.'), {})
conf.modulepath = [modulepath].flatten
conf
end
end
@@ -150,10 +150,10 @@
nil,
Bolt::Analytics::NoopClient.new)
end
def pal
- @pal ||= Bolt::PAL.new(config.modulepath, config.hiera_config, config.boltdir.resource_types)
+ @pal ||= Bolt::PAL.new(config.modulepath, config.hiera_config, config.project.resource_types)
end
BoltSpec::Plans::MOCKED_ACTIONS.each do |action|
# Allowed action stubs can be called up to be_called_times number of times
define_method :"allow_#{action}" do |object|