diff options
-rw-r--r-- | spec/integration/knife/upload_spec.rb | 6 | ||||
-rw-r--r-- | spec/unit/cookbook/metadata_spec.rb | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/spec/integration/knife/upload_spec.rb b/spec/integration/knife/upload_spec.rb index 27736349cc..d72cbb82f5 100644 --- a/spec/integration/knife/upload_spec.rb +++ b/spec/integration/knife/upload_spec.rb @@ -706,7 +706,7 @@ EOH end it 'knife upload succeeds' do knife('upload /cookbooks/x').should_succeed <<EOM -Updated /cookbooks/x +Created /cookbooks/x EOM knife('diff --name-status /cookbooks').should_succeed '' end @@ -1239,8 +1239,8 @@ EOM file 'cookbooks/x-1.0.0/metadata.rb', cb_metadata('x', '1.0.0', "\nchef_version '~> 999.0'") end it 'knife upload succeeds' do - knife('upload /cookbooks/x').should_succeed <<EOM -Updated /cookbooks/x + knife('upload /cookbooks/x-1.0.0').should_succeed <<EOM +Created /cookbooks/x-1.0.0 EOM knife('diff --name-status /cookbooks').should_succeed '' end diff --git a/spec/unit/cookbook/metadata_spec.rb b/spec/unit/cookbook/metadata_spec.rb index 0215858180..d91b84d9f2 100644 --- a/spec/unit/cookbook/metadata_spec.rb +++ b/spec/unit/cookbook/metadata_spec.rb @@ -354,7 +354,7 @@ describe Chef::Cookbook::Metadata do it "should fail validation on a simple pessimistic constraint" do expect_chef_version_works(["~> 999.0"]) - expect { metadata.validate_chef_version! }.not_to raise_error(Chef::Exceptions::CookbookChefVersionMismatch) + expect { metadata.validate_chef_version! }.to raise_error(Chef::Exceptions::CookbookChefVersionMismatch) end it "should fail validation when that valid chef versions are too big" do |