Skip to content

Commit

Permalink
Fix symlinks
Browse files Browse the repository at this point in the history
Will be rebased, doing separate commit for clarity.
  • Loading branch information
Martin Hagstrom committed Feb 27, 2015
1 parent 6d4652c commit b01e9ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/classes/init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,11 @@
end
end

if file[:symlinkname]
if file[:symlink]
symlinkname = "#{file[:prefix]}#{type}"
symlinkpath = "#{dirpath}#{file[:prefix]}#{type}"
symlinkpath.gsub! '_', '-'
symlinkpath.sub! 'pam-', ''
it {
should contain_file(symlinkname).with({
'ensure' => 'symlink',
Expand Down

0 comments on commit b01e9ca

Please sign in to comment.