summaryrefslogtreecommitdiff
path: root/chef/spec/unit/provider/package/rubygems_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'chef/spec/unit/provider/package/rubygems_spec.rb')
-rw-r--r--chef/spec/unit/provider/package/rubygems_spec.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/chef/spec/unit/provider/package/rubygems_spec.rb b/chef/spec/unit/provider/package/rubygems_spec.rb
index c3b80c9015..b03bcd9104 100644
--- a/chef/spec/unit/provider/package/rubygems_spec.rb
+++ b/chef/spec/unit/provider/package/rubygems_spec.rb
@@ -60,8 +60,11 @@ describe Chef::Provider::Package::Rubygems, "install_package" do
it "should run gem install with the package name and version" do
@provider.should_receive(:run_command).with({
- :command => "gem install rspec -q --no-rdoc --no-ri -v \"1.2.2\""
+ :command => "gem install rspec -q --no-rdoc --no-ri -v \"1.2.2\"",
+ :environment => {
+ "LC_ALL" => nil
+ }
})
@provider.install_package("rspec", "1.2.2")
end
-end \ No newline at end of file
+end