From 7746d84fa56e9ee93da4b4f687bfcf4ae9b84ed9 Mon Sep 17 00:00:00 2001 From: Ben Ford Date: Thu, 31 Oct 2019 11:30:13 -0700 Subject: [PATCH] Accept `:tag` for consistency with r10k This is a terrible way to do this. We should actually handle real branch/tag/etc like r10k does. This is intentionally undocumented so that it will only help catch user mistakes. --- lib/puppetlabs_spec_helper/tasks/fixtures.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puppetlabs_spec_helper/tasks/fixtures.rb b/lib/puppetlabs_spec_helper/tasks/fixtures.rb index 566a351c..9291997b 100644 --- a/lib/puppetlabs_spec_helper/tasks/fixtures.rb +++ b/lib/puppetlabs_spec_helper/tasks/fixtures.rb @@ -127,7 +127,7 @@ def fixtures(category) result[real_source] = { 'target' => File.join(real_target, fixture), - 'ref' => opts['ref'], + 'ref' => opts['ref'] || opts['tag'], 'branch' => opts['branch'], 'scm' => opts['scm'], 'flags' => opts['flags'],