diff options
author | Kapil Chouhan <kapil.chouhan@msystechnologies.com> | 2019-07-23 10:30:00 +0000 |
---|---|---|
committer | Kapil Chouhan <kapil.chouhan@msystechnologies.com> | 2019-09-09 12:24:47 +0000 |
commit | 6b9fc7e4628b9e4b8caba921e41e28218ec50ac6 (patch) | |
tree | 93ee7665acea6c3ff4e9cabbfa8b9d508208d255 /spec/unit/resource | |
parent | a5854d7ae6100a4f4a125d15dbef8fa69ca1cfad (diff) | |
download | chef-6b9fc7e4628b9e4b8caba921e41e28218ec50ac6.tar.gz |
Fix for chocolatey_package fails using extra options
Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com>
Fixed buildkite failure
Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com>
update require changes according to internal review comments
Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com>
Fix for MSYS-1015 chocolatey_package fails using extra options
Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com>
Diffstat (limited to 'spec/unit/resource')
-rw-r--r-- | spec/unit/resource/chocolatey_package_spec.rb | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/spec/unit/resource/chocolatey_package_spec.rb b/spec/unit/resource/chocolatey_package_spec.rb index 6dce2c0e69..2b97913412 100644 --- a/spec/unit/resource/chocolatey_package_spec.rb +++ b/spec/unit/resource/chocolatey_package_spec.rb @@ -77,8 +77,23 @@ describe Chef::Resource::ChocolateyPackage do expect(resource.version).to eql(["1.2.3", "4.5.6"]) end - it "the default returns is 0" do - expect(resource.returns).to eql([0]) + it "sets the list_options" do + resource.list_options("--local-only") + expect(resource.list_options).to eql("--local-only") + end + + it "sets the user" do + resource.user("ubuntu") + expect(resource.user).to eql("ubuntu") + end + + it "sets the password" do + resource.password("ubuntu@123") + expect(resource.password).to eql("ubuntu@123") + end + + it "the default returns are 0 and 2" do + expect(resource.returns).to eql([0, 2]) end # Integer, Array |