aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jahn <ajjahn@gmail.com>2016-07-10 14:51:46 -0400
committerAdam Jahn <ajjahn@gmail.com>2016-07-10 14:51:46 -0400
commitfcf3f6af854d20e701a74c3e9d4d5f7af20e8c71 (patch)
tree66867c39dcbca26d8055fa8d26667a4bc6467cf7
parent4475fb5496eeeea6cae610f029513369d58f385e (diff)
downloadpuppet-samba-fcf3f6af854d20e701a74c3e9d4d5f7af20e8c71.tar.gz
puppet-samba-fcf3f6af854d20e701a74c3e9d4d5f7af20e8c71.tar.bz2
specs for printer name option, closes #64
-rw-r--r--spec/defines/samba__server__share_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/defines/samba__server__share_spec.rb b/spec/defines/samba__server__share_spec.rb
index f4665c0..2033ee8 100644
--- a/spec/defines/samba__server__share_spec.rb
+++ b/spec/defines/samba__server__share_spec.rb
@@ -41,6 +41,7 @@ shared_examples "default share" do
set.with("inherit permissions")
set.with("inherit acls")
set.with("delete readonly")
+ set.with("printer name")
end
let(:change_set) { default_changes }
let(:changes) { change_set.to_a }
@@ -643,6 +644,15 @@ describe 'samba::server::share', :type => :define do
}}
let(:change_set) { default_changes.with("delete readonly", "no") }
end
+
+ context 'with printer_name set to "killing trees"' do
+ include_examples "default share"
+ let(:params) {{
+ :ensure => 'present',
+ :printer_name => 'killing trees',
+ }}
+ let(:change_set) { default_changes.with("printer name", "'killing trees'") }
+ end
end
end
end