Skip to content

Commit

Permalink
specs for inherit acls, closes #66
Browse files Browse the repository at this point in the history
  • Loading branch information
ajjahn committed Jul 10, 2016
1 parent eaeb28e commit babc3f5
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions spec/defines/samba__server__share_spec.rb
Expand Up @@ -39,6 +39,7 @@
set.with("hide dot files")
set.with("root preexec")
set.with("inherit permissions")
set.with("inherit acls")
end
let(:change_set) { default_changes }
let(:changes) { change_set.to_a }
Expand Down Expand Up @@ -605,6 +606,24 @@
}}
let(:change_set) { default_changes.with("inherit permissions", "no") }
end

context 'with inherit_acls set to true' do
include_examples "default share"
let(:params) {{
:ensure => 'present',
:inherit_acls => true,
}}
let(:change_set) { default_changes.with("inherit acls", "yes") }
end

context 'with inherit_acls set to false' do
include_examples "default share"
let(:params) {{
:ensure => 'present',
:inherit_acls => false,
}}
let(:change_set) { default_changes.with("inherit acls", "no") }
end
end
end
end

0 comments on commit babc3f5

Please sign in to comment.