diff options
author | Claire McQuin <mcquin@users.noreply.github.com> | 2014-11-07 14:48:12 -0800 |
---|---|---|
committer | Claire McQuin <mcquin@users.noreply.github.com> | 2014-11-07 14:48:12 -0800 |
commit | 1888a8a9c5cbc1bdcfb1d9aa919a911c72cbbff4 (patch) | |
tree | 2e3a93f98865ad7091fdd24319b1aba6d03dcc70 /spec/unit/version_constraint/platform_spec.rb | |
parent | bf6340a113dd0c37e2084c70007d201742f11e9d (diff) | |
parent | 51430f7f2c25773f5ad3c05015eed95d315f798d (diff) | |
download | chef-1888a8a9c5cbc1bdcfb1d9aa919a911c72cbbff4.tar.gz |
Merge pull request #2324 from opscode/mcquin/rspec-3
Update to RSpec 3
Diffstat (limited to 'spec/unit/version_constraint/platform_spec.rb')
-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 |