diff options
author | Bryan McLellan <btm@loftninjas.org> | 2020-03-18 20:18:00 -0400 |
---|---|---|
committer | Bryan McLellan <btm@loftninjas.org> | 2020-03-23 12:57:09 -0400 |
commit | 97497d968b806727cfeb00fdef2ec3976fbd53d8 (patch) | |
tree | 53c177e0d47a0b3eeb551b25e2efb82be83a159f /spec/unit/application | |
parent | ea801d898ba2a7a6e9bee6202710fab28ebf9e9a (diff) | |
download | chef-97497d968b806727cfeb00fdef2ec3976fbd53d8.tar.gz |
Simplify YAML mode checking for chef-apply
Signed-off-by: Bryan McLellan <btm@loftninjas.org>
Diffstat (limited to 'spec/unit/application')
-rw-r--r-- | spec/unit/application/apply_spec.rb | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/spec/unit/application/apply_spec.rb b/spec/unit/application/apply_spec.rb index d7927c84e1..f071dbd981 100644 --- a/spec/unit/application/apply_spec.rb +++ b/spec/unit/application/apply_spec.rb @@ -69,20 +69,6 @@ describe Chef::Application::Apply do @app.read_recipe_file(@recipe_file_name) end end - - describe "when the recipe filename ends in .yml" do - it "configures for parsing the recipe as YAML" do - @recipe_file_name = "foo.yml" - @recipe_path = File.expand_path(@recipe_file_name) - @recipe_file = double("Tempfile (mock)", read: @recipe_text) - allow(@app).to receive(:open).with(@recipe_path).and_return(@recipe_file) - allow(File).to receive(:exist?).with(@recipe_path).and_return(true) - allow(Chef::Application).to receive(:fatal!).and_return(true) - - @app.read_recipe_file(@recipe_file_name) - expect(@app.config[:yaml]).to eq(true) - end - end end describe "temp_recipe_file" do |