Sha256: 2b3997ce2516a6d62f3f5b286f51c8d961cd82e6ab8e5d2485b50ba5ea434d8b
Contents?: true
Size: 758 Bytes
Versions: 4
Compression:
Stored size: 758 Bytes
Contents
require 'spec_helper' require 'chef/config' RSpec.describe Chef::Config do shared_examples_for "deprecated by ohai but not deprecated" do it "does not emit a deprecation warning when set" do expect(Chef::Log).to_not receive(:warn). with(/Ohai::Config\[:#{option}\] is deprecated/) Chef::Config[option] = value expect(Chef::Config[option]).to eq(value) end end describe ":log_level" do include_examples "deprecated by ohai but not deprecated" do let(:option) { :log_level } let(:value) { :debug } end end describe ":log_location" do include_examples "deprecated by ohai but not deprecated" do let(:option) { :log_location } let(:value) { "path/to/log" } end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
chef-12.6.0 | spec/unit/config_spec.rb |
chef-12.6.0-universal-mingw32 | spec/unit/config_spec.rb |
chef-12.5.1-universal-mingw32 | spec/unit/config_spec.rb |
chef-12.5.1 | spec/unit/config_spec.rb |