summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlamont-granquist <lamont@scriptkiddie.org>2013-07-17 15:45:52 -0700
committerlamont-granquist <lamont@scriptkiddie.org>2013-07-17 15:45:52 -0700
commit5f3e84d11828af6279d0894c74b2e46cae3d9625 (patch)
treec82bde012e9e4f3d13cee55c5d1f40152d322996
parent1d28af2b42481a41cdd04f0f25e0f118ecee932f (diff)
parent87f7b92352e8aeb130ac39c7b7781c3af7cab348 (diff)
downloadchef-5f3e84d11828af6279d0894c74b2e46cae3d9625.tar.gz
Merge pull request #902 from opscode/lcg/unbundle-tests-10-backport
backport spec fix for unbundling rspec
-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