diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-06-29 11:13:57 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-29 11:13:57 -0700 |
commit | eda2808dce8146bfdb308dd658b1dd565df3562b (patch) | |
tree | a8b1c0544a0e69bec3a0aed879a9c47a170e6a65 /spec | |
parent | ffb7599295955800e9817d73043eee585e358b6a (diff) | |
parent | a0494b461fdac465e532f84efee0a4c5e70b65fb (diff) | |
download | chef-eda2808dce8146bfdb308dd658b1dd565df3562b.tar.gz |
Merge pull request #7406 from chef/lcg/suppress-turdfile
Suppress data_collector.json spec turd file
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/data_collector_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/unit/data_collector_spec.rb b/spec/unit/data_collector_spec.rb index a469808e63..f8a9e374e5 100644 --- a/spec/unit/data_collector_spec.rb +++ b/spec/unit/data_collector_spec.rb @@ -2,7 +2,7 @@ # Author:: Adam Leff (<adamleff@chef.io) # Author:: Ryan Cragun (<ryan@chef.io>) # -# Copyright:: Copyright 2012-2016, Chef Software Inc. +# Copyright:: Copyright 2012-2018, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -804,6 +804,7 @@ describe Chef::DataCollector::Reporter do context "when valid output_locations are provided" do it "does not raise an exception" do + expect(reporter).to receive(:open).with("data_collection.json", "a") Chef::Config[:data_collector][:output_locations] = { :urls => ["http://data_collector"], :files => ["data_collection.json"] } expect { reporter.send(:validate_data_collector_output_locations!) }.not_to raise_error(Chef::Exceptions::ConfigurationError) end |