diff options
Diffstat (limited to 'chef/spec/unit/provider/package/yum_spec.rb')
-rw-r--r-- | chef/spec/unit/provider/package/yum_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chef/spec/unit/provider/package/yum_spec.rb b/chef/spec/unit/provider/package/yum_spec.rb index 2e8ddb9971..11d33438dc 100644 --- a/chef/spec/unit/provider/package/yum_spec.rb +++ b/chef/spec/unit/provider/package/yum_spec.rb @@ -104,7 +104,7 @@ describe Chef::Provider::Package::Yum, "install_package" do end it "should run yum install with the package name and version" do - @provider.should_receive(:run_command).with({ + @provider.should_receive(:run_command_with_systems_locale).with({ :command => "yum -q -y install emacs-1.0" }) @provider.install_package("emacs", "1.0") @@ -143,7 +143,7 @@ describe Chef::Provider::Package::Yum, "upgrade_package" do end it "should run yum update if the package is installed" do - @provider.should_receive(:run_command).with({ + @provider.should_receive(:run_command_with_systems_locale).with({ :command => "yum -q -y update emacs-11" }) @provider.upgrade_package(@new_resource.name, @provider.candidate_version) @@ -151,7 +151,7 @@ describe Chef::Provider::Package::Yum, "upgrade_package" do it "should run yum install if the package is not installed" do @current_resource.stub!(:version).and_return(nil) - @provider.should_receive(:run_command).with({ + @provider.should_receive(:run_command_with_systems_locale).with({ :command => "yum -q -y install emacs-11" }) @provider.upgrade_package(@new_resource.name, @provider.candidate_version) @@ -180,7 +180,7 @@ describe Chef::Provider::Package::Yum, "remove_package" do end it "should run yum remove with the package name" do - @provider.should_receive(:run_command).with({ + @provider.should_receive(:run_command_with_systems_locale).with({ :command => "yum -q -y remove emacs-1.0" }) @provider.remove_package("emacs", "1.0") @@ -209,7 +209,7 @@ describe Chef::Provider::Package::Yum, "purge_package" do end it "should run yum remove with the package name" do - @provider.should_receive(:run_command).with({ + @provider.should_receive(:run_command_with_systems_locale).with({ :command => "yum -q -y remove emacs-1.0" }) @provider.purge_package("emacs", "1.0") |