summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chef/spec/unit/provider/package/rubygems_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/chef/spec/unit/provider/package/rubygems_spec.rb b/chef/spec/unit/provider/package/rubygems_spec.rb
index d7941af76d..a9cb49cd1b 100644
--- a/chef/spec/unit/provider/package/rubygems_spec.rb
+++ b/chef/spec/unit/provider/package/rubygems_spec.rb
@@ -225,7 +225,7 @@ describe Chef::Provider::Package::Rubygems::AlternateGemEnvironment do
it "determines the installed versions of gems from the source index (part2: the unmockening)" do
$stdout.stub!(:write)
path_to_gem = if windows?
- `where gem`.split[-1]
+ `where gem`.split[1]
else
`which gem`.strip
end