diff options
author | Xabier de Zuazo <xabier@onddo.com> | 2013-07-03 20:34:11 +0200 |
---|---|---|
committer | Xabier de Zuazo <xabier@onddo.com> | 2013-07-03 20:34:11 +0200 |
commit | 76d7d44f386ba6ee160353f0e69cb0eba35580c3 (patch) | |
tree | e7b9915cf3db1dcd9df720f2959fe8c40b665416 /spec/unit/cookbook/metadata_spec.rb | |
parent | dfef6bbbca5e8857a87dd48b10916693c0d94c8f (diff) | |
download | chef-76d7d44f386ba6ee160353f0e69cb0eba35580c3.tar.gz |
[CHEF-4298] some tests fixed
Diffstat (limited to 'spec/unit/cookbook/metadata_spec.rb')
-rw-r--r-- | spec/unit/cookbook/metadata_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/cookbook/metadata_spec.rb b/spec/unit/cookbook/metadata_spec.rb index a395c6d3e4..a6701dba62 100644 --- a/spec/unit/cookbook/metadata_spec.rb +++ b/spec/unit/cookbook/metadata_spec.rb @@ -140,7 +140,7 @@ describe Chef::Cookbook::Metadata do describe "adding a supported platform" do it "should support adding a supported platform with a single expression" do @meta.supports("ubuntu", ">= 8.04") - @meta.platforms["ubuntu"].should == '>= 8.04' + @meta.platforms["ubuntu"].should == '>= 8.4.0' end end @@ -190,11 +190,11 @@ describe Chef::Cookbook::Metadata do check_with = dep_args.shift describe dep do it "should be set-able via #{dep}" do - @meta.send(dep, *dep_args).should == dep_args[1] + @meta.send(dep, *dep_args).should == Chef::VersionConstraint.new(dep_args[1]).to_s end it "should be get-able via #{check_with}" do @meta.send(dep, *dep_args) - @meta.send(check_with).should == { dep_args[0] => dep_args[1] } + @meta.send(check_with).should == { dep_args[0] => Chef::VersionConstraint.new(dep_args[1]).to_s } end end end |