summaryrefslogtreecommitdiff
path: root/spec/unit/version_constraint_spec.rb
diff options
context:
space:
mode:
authorXabier de Zuazo <xabier@onddo.com>2013-03-04 16:38:46 +0100
committerBryan McLellan <btm@opscode.com>2013-04-11 13:04:33 -0700
commitf554a1c0fbc1f308462d3d62544a0fd7ed7df6ec (patch)
treef546c112106e3cf7083377e727682d84df17eef7 /spec/unit/version_constraint_spec.rb
parent35d56a40e2ced79562a77df0e3462a7c1ec76fef (diff)
downloadchef-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.rb5
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