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 | |
parent | b92c309b0f1aa0837f76ab89d6c81c36076ceca9 (diff) | |
download | chef-5fed7a65a2f024d964ecf2de1bcf2911cf8a600c.tar.gz |
Update to RSpec 3.
Diffstat (limited to 'spec/unit/version')
-rw-r--r-- | spec/unit/version/platform_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/unit/version/platform_spec.rb b/spec/unit/version/platform_spec.rb index 69f42e58b2..dd425b32a5 100644 --- a/spec/unit/version/platform_spec.rb +++ b/spec/unit/version/platform_spec.rb @@ -21,12 +21,12 @@ describe Chef::Version::Platform do it "is a subclass of Chef::Version" do v = Chef::Version::Platform.new('1.1') - v.should be_an_instance_of(Chef::Version::Platform) - v.should be_a_kind_of(Chef::Version) + expect(v).to be_an_instance_of(Chef::Version::Platform) + expect(v).to be_a_kind_of(Chef::Version) end it "should transform 1 to 1.0.0" do - Chef::Version::Platform.new("1").to_s.should == "1.0.0" + expect(Chef::Version::Platform.new("1").to_s).to eq("1.0.0") end describe "when creating valid Versions" do @@ -44,7 +44,7 @@ describe Chef::Version::Platform do the_error = Chef::Exceptions::InvalidPlatformVersion bad_versions.each do |v| it "should raise #{the_error} when given '#{v}'" do - lambda { Chef::Version::Platform.new v }.should raise_error(the_error) + expect { Chef::Version::Platform.new v }.to raise_error(the_error) end end end @@ -52,7 +52,7 @@ describe Chef::Version::Platform do describe "<=>" do it "should equate versions 1 and 1.0.0" do - Chef::Version::Platform.new("1").should == Chef::Version::Platform.new("1.0.0") + expect(Chef::Version::Platform.new("1")).to eq(Chef::Version::Platform.new("1.0.0")) end end |