diff options
author | John Keiser <john@johnkeiser.com> | 2015-06-30 14:50:58 -0600 |
---|---|---|
committer | John Keiser <john@johnkeiser.com> | 2015-07-03 13:10:23 -0600 |
commit | 17039741776d3e597776cee859746d8efd586a6d (patch) | |
tree | 06c1a4423f22a2da3cb24954dd4c3bdfa3922a24 /spec/unit/mixin | |
parent | 901f122c5a906b8f64e8ed1919674ffe9d839bf0 (diff) | |
download | chef-17039741776d3e597776cee859746d8efd586a6d.tar.gz |
Add Property.create and Resource.property_type for type system overriding
Diffstat (limited to 'spec/unit/mixin')
-rw-r--r-- | spec/unit/mixin/params_validate_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/mixin/params_validate_spec.rb b/spec/unit/mixin/params_validate_spec.rb index 2a38972f05..3724bbf583 100644 --- a/spec/unit/mixin/params_validate_spec.rb +++ b/spec/unit/mixin/params_validate_spec.rb @@ -333,11 +333,11 @@ describe Chef::Mixin::ParamsValidate do it "asserts that a value returns false from a predicate method" do expect do @vo.validate({:not_blank => "should pass"}, - {:not_blank => {:cannot_be => :nil, :cannot_be => :empty}}) + {:not_blank => {:cannot_be => [ :nil, :empty ]}}) end.not_to raise_error expect do @vo.validate({:not_blank => ""}, - {:not_blank => {:cannot_be => :nil, :cannot_be => :empty}}) + {:not_blank => {:cannot_be => [ :nil, :empty ]}}) end.to raise_error(Chef::Exceptions::ValidationFailed) end |