aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/pathname_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/test/pathname_spec.rb')
-rw-r--r--Library/Homebrew/test/pathname_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/test/pathname_spec.rb b/Library/Homebrew/test/pathname_spec.rb
index 77cb6cfed..0bc19c5ac 100644
--- a/Library/Homebrew/test/pathname_spec.rb
+++ b/Library/Homebrew/test/pathname_spec.rb
@@ -104,7 +104,7 @@ describe Pathname do
end
it "preserves permissions" do
- File.open(file, "w", 0100777).close
+ File.open(file, "w", 0100777) {}
file.atomic_write("CONTENT")
expect(file.stat.mode).to eq(0100777 & ~File.umask)
end