Created
April 17, 2012 01:15
-
-
Save michaelklishin/2402721 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/spec/install/gems/sudo_spec.rb b/spec/install/gems/sudo_spec.rb | |
index 3894f76..c2d5444 100644 | |
--- a/spec/install/gems/sudo_spec.rb | |
+++ b/spec/install/gems/sudo_spec.rb | |
@@ -20,8 +20,7 @@ describe "when using sudo", :sudo => true do | |
it "installs when BUNDLE_PATH is owned by root" do | |
bundle_path = tmp("owned_by_root") | |
- FileUtils.mkdir_p bundle_path | |
- sudo "chown -R root #{bundle_path}" | |
+ sudo("mkdir -p #{bundle_path}").should be_true | |
ENV['BUNDLE_PATH'] = bundle_path.to_s | |
install_gemfile <<-G |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment