Sha256: 90d7fe7869d231d5924d6428941b18962f4f1056b060c9b304c74b599ba50ac1

Contents?: true

Size: 788 Bytes

Versions: 106

Compression:

Stored size: 788 Bytes

Contents

require File.expand_path('../../spec_helper', __FILE__)

describe "Chef::ShellOut deprecation notices" do
  it "logs a warning when initializing a new Chef::ShellOut object" do
    Chef::Log.should_receive(:warn).with("Chef::ShellOut is deprecated, please use Mixlib::ShellOut")
    Chef::Log.should_receive(:warn).with(/Called from\:/)
    Chef::ShellOut.new("pwd")
  end
end

describe "Chef::Exceptions::ShellCommandFailed deprecation notices" do

  it "logs a warning when referencing the constant Chef::Exceptions::ShellCommandFailed" do
    Chef::Log.should_receive(:warn).with("Chef::Exceptions::ShellCommandFailed is deprecated, use Mixlib::ShellOut::ShellCommandFailed")
    Chef::Log.should_receive(:warn).with(/Called from\:/)
    Chef::Exceptions::ShellCommandFailed
  end
end

Version data entries

106 entries across 106 versions & 2 rubygems

Version Path
chef-11.18.12-x86-mingw32 spec/unit/shell_out_spec.rb
chef-11.18.12 spec/unit/shell_out_spec.rb
chef-11.18.6-x86-mingw32 spec/unit/shell_out_spec.rb
chef-11.18.6 spec/unit/shell_out_spec.rb
chef-11.18.0-x86-mingw32 spec/unit/shell_out_spec.rb
chef-11.18.0 spec/unit/shell_out_spec.rb
chef-12.0.3-x86-mingw32 spec/unit/shell_out_spec.rb
chef-12.0.3 spec/unit/shell_out_spec.rb
chef-12.0.1-x86-mingw32 spec/unit/shell_out_spec.rb
chef-12.0.1 spec/unit/shell_out_spec.rb
chef-12.0.0-x86-mingw32 spec/unit/shell_out_spec.rb
chef-12.0.0 spec/unit/shell_out_spec.rb
chef-12.0.0.rc.0-x86-mingw32 spec/unit/shell_out_spec.rb
chef-12.0.0.rc.0 spec/unit/shell_out_spec.rb
chef-11.16.4-x86-mingw32 spec/unit/shell_out_spec.rb
chef-11.16.4 spec/unit/shell_out_spec.rb
chef-11.16.2-x86-mingw32 spec/unit/shell_out_spec.rb
chef-11.16.2 spec/unit/shell_out_spec.rb
chef-12.0.0.alpha.2-x86-mingw32 spec/unit/shell_out_spec.rb
chef-12.0.0.alpha.2 spec/unit/shell_out_spec.rb