diff options
author | Xabier de Zuazo <xabier@onddo.com> | 2013-03-04 15:05:54 +0100 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2013-04-11 13:04:33 -0700 |
commit | 38becdf97cdbd060027776a551aad333fbddcd5a (patch) | |
tree | 1e193e818ca257424f1ab849e3862662bb6fc27a /spec/unit/version_constraint_spec.rb | |
parent | 8c1e41b93b119855e2e723cf35f9ca72d06a76f4 (diff) | |
download | chef-38becdf97cdbd060027776a551aad333fbddcd5a.tar.gz |
[CHEF-3919] cookbook version specific code factored out from Chef::Version, new classes created: Chef::Version::Cookbook and Chef::VersionConstraint::Cookbook
Diffstat (limited to 'spec/unit/version_constraint_spec.rb')
-rw-r--r-- | spec/unit/version_constraint_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/version_constraint_spec.rb b/spec/unit/version_constraint_spec.rb index aea7001f2b..fe9c57c8f5 100644 --- a/spec/unit/version_constraint_spec.rb +++ b/spec/unit/version_constraint_spec.rb @@ -23,7 +23,7 @@ describe Chef::VersionConstraint do bad_version = ["> >", ">= 1.2.z", "> 1.2.3 < 5.0", "> 1.2.3, < 5.0"] bad_op = ["<3.0.1", ">$ 1.2.3", "! 3.4"] o_error = Chef::Exceptions::InvalidVersionConstraint - v_error = Chef::Exceptions::InvalidCookbookVersion + v_error = Chef::Exceptions::InvalidVersion bad_version.each do |s| it "should raise #{v_error} when given #{s}" do lambda { Chef::VersionConstraint.new s }.should raise_error(v_error) |