diff options
author | Xabier de Zuazo <xabier@onddo.com> | 2013-03-04 16:38:46 +0100 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2013-04-11 13:04:33 -0700 |
commit | f554a1c0fbc1f308462d3d62544a0fd7ed7df6ec (patch) | |
tree | f546c112106e3cf7083377e727682d84df17eef7 /spec/unit/version_constraint_spec.rb | |
parent | 35d56a40e2ced79562a77df0e3462a7c1ec76fef (diff) | |
download | chef-f554a1c0fbc1f308462d3d62544a0fd7ed7df6ec.tar.gz |
[CHEF-3919] tests added for Chef::VersionConstraint::Cookbook class
Diffstat (limited to 'spec/unit/version_constraint_spec.rb')
-rw-r--r-- | spec/unit/version_constraint_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/version_constraint_spec.rb b/spec/unit/version_constraint_spec.rb index fe9c57c8f5..ff8dd8b504 100644 --- a/spec/unit/version_constraint_spec.rb +++ b/spec/unit/version_constraint_spec.rb @@ -59,6 +59,11 @@ describe Chef::VersionConstraint do Chef::VersionConstraint.new(nil).to_s.should == ">= 0.0.0" end + it "should work with Chef::Version classes" do + vc = Chef::VersionConstraint.new("1.0") + vc.version.should be_an_instance_of(Chef::Version) + end + describe "include?" do describe "handles various input data types" do before do |