aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/test/support/shared_examples
diff options
context:
space:
mode:
authorVítor Galvão2017-01-28 16:25:14 +0000
committerVítor Galvão2017-01-28 18:29:59 +0000
commitc0b84a0479562edd0bb56b3d915fda9f90a520da (patch)
tree14f281cf98b5cf3d7079c117f6b01eef04ffe2e5 /Library/Homebrew/cask/test/support/shared_examples
parentad4fd014e1e558207d4eecdafe8667ecba5a8f51 (diff)
downloadbrew-c0b84a0479562edd0bb56b3d915fda9f90a520da.tar.bz2
cask: staged: no sudo in set_permissions
Diffstat (limited to 'Library/Homebrew/cask/test/support/shared_examples')
-rw-r--r--Library/Homebrew/cask/test/support/shared_examples/staged.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cask/test/support/shared_examples/staged.rb b/Library/Homebrew/cask/test/support/shared_examples/staged.rb
index ef4ff0341..95e75726e 100644
--- a/Library/Homebrew/cask/test/support/shared_examples/staged.rb
+++ b/Library/Homebrew/cask/test/support/shared_examples/staged.rb
@@ -47,7 +47,7 @@ shared_examples_for Hbc::Staged do
staged.stubs(Pathname: fake_pathname)
Hbc::FakeSystemCommand.expects_command(
- ["/usr/bin/sudo", "-E", "--", "/bin/chmod", "-R", "--", "777", fake_pathname]
+ ["/bin/chmod", "-R", "--", "777", fake_pathname]
)
staged.set_permissions(fake_pathname.to_s, "777")
end
@@ -57,7 +57,7 @@ shared_examples_for Hbc::Staged do
staged.stubs(:Pathname).returns(fake_pathname)
Hbc::FakeSystemCommand.expects_command(
- ["/usr/bin/sudo", "-E", "--", "/bin/chmod", "-R", "--", "777", fake_pathname, fake_pathname]
+ ["/bin/chmod", "-R", "--", "777", fake_pathname, fake_pathname]
)
staged.set_permissions([fake_pathname.to_s, fake_pathname.to_s], "777")
end