diff options
author | David Bresson <david.bresson@lava.ai> | 2018-08-17 22:56:18 -0700 |
---|---|---|
committer | David Bresson <david.bresson@lava.ai> | 2018-08-17 23:45:23 -0700 |
commit | 47d1cc0936438d73986815af7602b68b9b1aca97 (patch) | |
tree | 88f85b4e5bc29ee237a2db24ea4f880d914f1d40 /spec/unit | |
parent | 7395e450b0c15fa9f462039bc5a864f699960716 (diff) | |
download | chef-47d1cc0936438d73986815af7602b68b9b1aca97.tar.gz |
support repeated options in systemd_unit
Signed-off-by: David Bresson <dabresson@gmail.com>
Diffstat (limited to 'spec/unit')
-rw-r--r-- | spec/unit/resource/systemd_unit_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/unit/resource/systemd_unit_spec.rb b/spec/unit/resource/systemd_unit_spec.rb index fa30255885..f05418eb34 100644 --- a/spec/unit/resource/systemd_unit_spec.rb +++ b/spec/unit/resource/systemd_unit_spec.rb @@ -20,11 +20,12 @@ require "spec_helper" describe Chef::Resource::SystemdUnit do let(:resource) { Chef::Resource::SystemdUnit.new("sysstat-collect.timer") } - let(:unit_content_string) { "[Unit]\nDescription = Run system activity accounting tool every 10 minutes\n\n[Timer]\nOnCalendar = *:00/10\n\n[Install]\nWantedBy = sysstat.service\n" } + let(:unit_content_string) { "[Unit]\nDescription = Run system activity accounting tool every 10 minutes\nDocumentation = foo\nDocumentation = bar\n\n[Timer]\nOnCalendar = *:00/10\n\n[Install]\nWantedBy = sysstat.service\n" } let(:unit_content_hash) do { "Unit" => { "Description" => "Run system activity accounting tool every 10 minutes", + "Documentation" => %w{foo bar}, }, "Timer" => { "OnCalendar" => "*:00/10", |