From a4f9849556bca101eb59432c72db589b34b3b8f7 Mon Sep 17 00:00:00 2001 From: Joshua Hoblitt Date: Thu, 22 Jun 2023 13:40:34 -0700 Subject: [PATCH] add modules param to spec_helper_acceptance.rb.erb --- config_defaults.yml | 2 ++ moduleroot/spec/spec_helper_acceptance.rb.erb | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config_defaults.yml b/config_defaults.yml index 64a6f715..c247ebdc 100644 --- a/config_defaults.yml +++ b/config_defaults.yml @@ -118,6 +118,8 @@ spec/spec_helper.rb: mock_with: false spec/spec_helper_acceptance.rb: unmanaged: true + configure_beaker: + modules: ':metadata' CONTRIBUTING.md: delete: true .yardopts: diff --git a/moduleroot/spec/spec_helper_acceptance.rb.erb b/moduleroot/spec/spec_helper_acceptance.rb.erb index d3a6e23c..570755a6 100644 --- a/moduleroot/spec/spec_helper_acceptance.rb.erb +++ b/moduleroot/spec/spec_helper_acceptance.rb.erb @@ -5,6 +5,8 @@ require 'voxpupuli/acceptance/spec_helper_acceptance' -configure_beaker +<%- unless @configs['configure_beaker'].nil? -%> +configure_beaker(modules: <%= @configs['configure_beaker']['modules'] || ':metadata' %>) +<%- end -%> Dir['./spec/support/acceptance/**/*.rb'].sort.each { |f| require f }