diff options
author | Bryan McLellan <btm@opscode.com> | 2012-04-24 13:36:03 -0700 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2012-04-24 13:36:03 -0700 |
commit | 09f0c4f2c90aed274b53a0632368dc726137c2f5 (patch) | |
tree | 6e61539056da20eacb87da0f93868e32c35bf2ed /chef/spec/unit/provider/package/rubygems_spec.rb | |
parent | 81b9ca3442682cd06cca948708e9140ccc563201 (diff) | |
download | chef-09f0c4f2c90aed274b53a0632368dc726137c2f5.tar.gz |
CHEF-3055: update unit tests for new Omnibus Client path
Diffstat (limited to 'chef/spec/unit/provider/package/rubygems_spec.rb')
-rw-r--r-- | chef/spec/unit/provider/package/rubygems_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chef/spec/unit/provider/package/rubygems_spec.rb b/chef/spec/unit/provider/package/rubygems_spec.rb index 8699e95b27..bcd2a23c95 100644 --- a/chef/spec/unit/provider/package/rubygems_spec.rb +++ b/chef/spec/unit/provider/package/rubygems_spec.rb @@ -344,11 +344,11 @@ describe Chef::Provider::Package::Rubygems do it "searches for a gem binary when running on Omnibus on Unix" do platform_mock :unix do - RbConfig::CONFIG.stub!(:[]).with('bindir').and_return("/opt/opscode/embedded/bin") - ENV.stub!(:[]).with('PATH').and_return("/usr/bin:/usr/sbin:/opt/opscode/embedded/bin") + RbConfig::CONFIG.stub!(:[]).with('bindir').and_return("/opt/chef/embedded/bin") + ENV.stub!(:[]).with('PATH').and_return("/usr/bin:/usr/sbin:/opt/chef/embedded/bin") File.stub!(:exists?).with('/usr/bin/gem').and_return(false) File.stub!(:exists?).with('/usr/sbin/gem').and_return(true) - File.stub!(:exists?).with('/opt/opscode/embedded/bin/gem').and_return(true) # should not get here + File.stub!(:exists?).with('/opt/chef/embedded/bin/gem').and_return(true) # should not get here provider = Chef::Provider::Package::Rubygems.new(@new_resource, @run_context) provider.gem_env.gem_binary_location.should == '/usr/sbin/gem' end |