Skip to content

Commit

Permalink
(GH-397) - Honour default symlink when additional symlinks delcared
Browse files Browse the repository at this point in the history
Before, declaring a symlink would overwrite the symlink to the current
module.
This is not what we would want for testing, and we should be able to
declare additional symlinks to the default one.
Now, we extra symlinks declared, we merge into the auto_symlink, if not
operate as before.
  • Loading branch information
jordanbreen28 committed Feb 1, 2024
1 parent 157ed92 commit eee3d6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppetlabs_spec_helper/tasks/fixtures.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def fixtures(category)

fixtures = fixtures['fixtures']

fixtures['symlinks'] = auto_symlink if fixtures['symlinks'].nil?
fixtures['symlinks'] = fixtures['symlinks'].nil? ? auto_symlink : auto_symlink.merge!(fixtures['symlinks'])

result = {}
if fixtures.include?(category) && !fixtures[category].nil?
Expand Down

0 comments on commit eee3d6f

Please sign in to comment.