diff options
Diffstat (limited to 'spec/unit/system_spec.rb')
-rw-r--r-- | spec/unit/system_spec.rb | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/spec/unit/system_spec.rb b/spec/unit/system_spec.rb index 0144ff61..2a549c43 100644 --- a/spec/unit/system_spec.rb +++ b/spec/unit/system_spec.rb @@ -38,16 +38,6 @@ describe "Ohai::System" do expect(ohai.v6_dependency_solver).to be_a_kind_of(Hash) end - it "merges deprecated config settings into the ohai config context" do - expect(Ohai::Log).to receive(:warn). - with(/Ohai::Config\[:disabled_plugins\] is deprecated/) - Ohai::Config[:disabled_plugins] = [ :Foo, :Baz ] - expect(Ohai::Config).to receive(:merge_deprecated_config). - and_call_original - Ohai::System.new - expect(Ohai.config[:disabled_plugins]).to eq([ :Foo, :Baz ]) - end - it "merges provided configuration options into the ohai config context" do config = { disabled_plugins: [ :Foo, :Baz ], @@ -71,30 +61,6 @@ describe "Ohai::System" do end end - shared_examples_for "appendable deprecated configuration option" do - it "logs a warning and configures the option on the ohai config context" do - Ohai::Config[option] << value - expect(Ohai::Log).to receive(:warn). - with(/Ohai::Config\[:#{option}\] is deprecated/) - Ohai::System.new - expect(Ohai.config[option]).to include(value) - end - end - - context "when a top-level hints_path is configured" do - include_examples "appendable deprecated configuration option" do - let(:option) { :hints_path } - let(:value) { "/path/to/hints" } - end - end - - context "when a top-level plugin_path is configured" do - include_examples "appendable deprecated configuration option" do - let(:option) { :plugin_path } - let(:value) { "/path/to/plugins" } - end - end - context "first time configuration" do before { allow(Ohai::Log).to receive(:configured?).and_return(false) } |