From 87f7b92352e8aeb130ac39c7b7781c3af7cab348 Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Wed, 17 Jul 2013 12:03:39 -0700 Subject: backport spec fix for unbundling rspec --- chef/spec/unit/provider/package/rubygems_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1