diff options
author | Pete Higgins <pete@peterhiggins.org> | 2020-07-28 20:49:48 -0700 |
---|---|---|
committer | Pete Higgins <pete@peterhiggins.org> | 2020-07-29 17:18:05 -0700 |
commit | 018c9e9e16b6cc7cc7e7509b2b6aafed8b6c44c8 (patch) | |
tree | 63e856f0239559c5829a77229d2520c09ef7dee7 /spec/integration | |
parent | d3552628a9323ccc7da07b784d0dd49e7063132d (diff) | |
download | chef-018c9e9e16b6cc7cc7e7509b2b6aafed8b6c44c8.tar.gz |
Inline a shared context and remove it and DSL method.
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
Diffstat (limited to 'spec/integration')
-rw-r--r-- | spec/integration/knife/diff_spec.rb | 4 | ||||
-rw-r--r-- | spec/integration/knife/download_spec.rb | 4 | ||||
-rw-r--r-- | spec/integration/knife/upload_spec.rb | 4 |
3 files changed, 9 insertions, 3 deletions
diff --git a/spec/integration/knife/diff_spec.rb b/spec/integration/knife/diff_spec.rb index c56389727d..41ae5ea519 100644 --- a/spec/integration/knife/diff_spec.rb +++ b/spec/integration/knife/diff_spec.rb @@ -318,7 +318,9 @@ describe "knife diff", :workstation do end end # without versioned cookbooks - with_versioned_cookbooks do + context "with versioned cookbooks" do + before { Chef::Config[:versioned_cookbooks] = true } + when_the_chef_server "has one of each thing" do before do client "x", "{}" diff --git a/spec/integration/knife/download_spec.rb b/spec/integration/knife/download_spec.rb index ed63b6896a..7bdec7b356 100644 --- a/spec/integration/knife/download_spec.rb +++ b/spec/integration/knife/download_spec.rb @@ -594,7 +594,9 @@ describe "knife download", :workstation do end end # without versioned cookbooks - with_versioned_cookbooks do + context "with versioned cookbooks" do + before { Chef::Config[:versioned_cookbooks] = true } + when_the_chef_server "has one of each thing" do before do client "x", {} diff --git a/spec/integration/knife/upload_spec.rb b/spec/integration/knife/upload_spec.rb index dd539db507..37cfcefa32 100644 --- a/spec/integration/knife/upload_spec.rb +++ b/spec/integration/knife/upload_spec.rb @@ -800,7 +800,9 @@ describe "knife upload", :workstation do end end # without versioned cookbooks - with_versioned_cookbooks do + context "with versioned cookbooks" do + before { Chef::Config[:versioned_cookbooks] = true } + when_the_chef_server "has one of each thing" do before do |