summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2017-12-18 20:43:49 -0800
committerTim Smith <tsmith@chef.io>2017-12-19 12:56:35 -0800
commit64014cb9830b8da7123e01212c5dd3d8fe6617a0 (patch)
tree1ce0493a3ba7136f3e87c28ab08656da538659f6 /spec
parent9dc874ef1559cb390d64b4746024ca7c9aa9038a (diff)
downloadchef-64014cb9830b8da7123e01212c5dd3d8fe6617a0.tar.gz
Fix priority to accept 1-99 not 0-99yum_repo_cleanup
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/resource/yum_repository_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/unit/resource/yum_repository_spec.rb b/spec/unit/resource/yum_repository_spec.rb
index c3732c2eab..3ff9b85f88 100644
--- a/spec/unit/resource/yum_repository_spec.rb
+++ b/spec/unit/resource/yum_repository_spec.rb
@@ -41,6 +41,7 @@ describe Chef::Resource::YumRepository do
expect { resource.priority "99" }.not_to raise_error(ArgumentError)
expect { resource.priority "1" }.not_to raise_error(ArgumentError)
expect { resource.priority "100" }.to raise_error(ArgumentError)
+ expect { resource.priority "0" }.to raise_error(ArgumentError)
end
it "the failovermethod property accepts 'priority' or 'roundrobin'" do