diff options
author | snehaldwivedi <sdwivedi@msystechnologies.com> | 2021-08-26 23:25:49 -0700 |
---|---|---|
committer | snehaldwivedi <sdwivedi@msystechnologies.com> | 2021-10-07 02:18:34 -0700 |
commit | 354b540a581eafb0c210494500b33961e606c835 (patch) | |
tree | f59d90e7b3bdb3251cb037f056cbe02fc555e71b /spec/unit | |
parent | 41a953050a3c0197619f4b5a9139ea174c0a1f4a (diff) | |
download | chef-354b540a581eafb0c210494500b33961e606c835.tar.gz |
fix dpkg_package doesn't do version comparisons on upgrade
Signed-off-by: snehaldwivedi <sdwivedi@msystechnologies.com>
Diffstat (limited to 'spec/unit')
-rw-r--r-- | spec/unit/provider/package/dpkg_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/unit/provider/package/dpkg_spec.rb b/spec/unit/provider/package/dpkg_spec.rb index 318b91c77e..e933b7c59d 100644 --- a/spec/unit/provider/package/dpkg_spec.rb +++ b/spec/unit/provider/package/dpkg_spec.rb @@ -311,4 +311,8 @@ describe Chef::Provider::Package::Dpkg do let(:preseed_path) { "/preseed--wget--wget-1.11.4.seed" } end end + + it "allows you to specify whether allow_downgrade is true or false" do + expect(new_resource.allow_downgrade).to eq(false) + end end |