diff options
author | Claire McQuin <claire@getchef.com> | 2014-10-29 15:14:22 -0700 |
---|---|---|
committer | Claire McQuin <claire@getchef.com> | 2014-10-29 15:59:04 -0700 |
commit | 5fed7a65a2f024d964ecf2de1bcf2911cf8a600c (patch) | |
tree | 14cc6968e4fe4fd2485c0211088b25c645a80a4b /spec/unit/version_constraint | |
parent | b92c309b0f1aa0837f76ab89d6c81c36076ceca9 (diff) | |
download | chef-5fed7a65a2f024d964ecf2de1bcf2911cf8a600c.tar.gz |
Update to RSpec 3.
Diffstat (limited to 'spec/unit/version_constraint')
-rw-r--r-- | spec/unit/version_constraint/platform_spec.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/unit/version_constraint/platform_spec.rb b/spec/unit/version_constraint/platform_spec.rb index a3599aeb96..f38eb49689 100644 --- a/spec/unit/version_constraint/platform_spec.rb +++ b/spec/unit/version_constraint/platform_spec.rb @@ -21,24 +21,24 @@ describe Chef::VersionConstraint::Platform do it "is a subclass of Chef::VersionConstraint" do v = Chef::VersionConstraint::Platform.new - v.should be_an_instance_of(Chef::VersionConstraint::Platform) - v.should be_a_kind_of(Chef::VersionConstraint) + expect(v).to be_an_instance_of(Chef::VersionConstraint::Platform) + expect(v).to be_a_kind_of(Chef::VersionConstraint) end 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) + expect(vc.version).to be_an_instance_of(Chef::Version::Platform) end describe "include?" do it "pessimistic ~> x" do vc = Chef::VersionConstraint::Platform.new "~> 1" - vc.should include "1.3.3" - vc.should include "1.4" + expect(vc).to include "1.3.3" + expect(vc).to include "1.4" - vc.should_not include "2.2" - vc.should_not include "0.3.0" + expect(vc).not_to include "2.2" + expect(vc).not_to include "0.3.0" end end |