summaryrefslogtreecommitdiff
path: root/spec/unit/version_constraint/platform_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/version_constraint/platform_spec.rb')
-rw-r--r--spec/unit/version_constraint/platform_spec.rb14
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