Skip to content

Instantly share code, notes, and snippets.

@michaelklishin
Created April 17, 2012 01:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelklishin/2402721 to your computer and use it in GitHub Desktop.
Save michaelklishin/2402721 to your computer and use it in GitHub Desktop.
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