diff options
author | Xabier de Zuazo <xabier@onddo.com> | 2013-03-13 12:03:35 +0100 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2013-04-11 13:04:33 -0700 |
commit | 7052e7712a6b159626c2077f86e8be551e79bbd4 (patch) | |
tree | ef0cb7faba3afcce049d2f8a34076344811625c6 /spec/unit/version_constraint | |
parent | f554a1c0fbc1f308462d3d62544a0fd7ed7df6ec (diff) | |
download | chef-7052e7712a6b159626c2077f86e8be551e79bbd4.tar.gz |
[CHEF-3919] Removed Chef::Version::Cookbook code and replaced by a Chef::Version::Platform class, reverting Chef::Version class changes
Diffstat (limited to 'spec/unit/version_constraint')
-rw-r--r-- | spec/unit/version_constraint/platform_spec.rb (renamed from spec/unit/version_constraint/cookbook_spec.rb) | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/unit/version_constraint/cookbook_spec.rb b/spec/unit/version_constraint/platform_spec.rb index ddfd966ab8..11360a6595 100644 --- a/spec/unit/version_constraint/cookbook_spec.rb +++ b/spec/unit/version_constraint/platform_spec.rb @@ -15,19 +15,19 @@ # limitations under the License. require 'spec_helper' -require 'chef/version_constraint/cookbook' +require 'chef/version_constraint/platform' -describe Chef::VersionConstraint::Cookbook do +describe Chef::VersionConstraint::Platform do it "is a subclass of Chef::VersionConstraint" do - v = Chef::VersionConstraint::Cookbook.new - v.should be_an_instance_of(Chef::VersionConstraint::Cookbook) + v = Chef::VersionConstraint::Platform.new + v.should be_an_instance_of(Chef::VersionConstraint::Platform) v.should be_a_kind_of(Chef::VersionConstraint) end - it "should work with Chef::Version::Cookbook classes" do - vc = Chef::VersionConstraint::Cookbook.new("1.0") - vc.version.should be_an_instance_of(Chef::Version::Cookbook) + it "should work with Chef::Version::Platform classes" do + vc = Chef::VersionConstraint::Platform.new("1.0") + vc.version.should be_an_instance_of(Chef::Version::Platform) end end |