summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenji Okimoto <okimoto@clear-code.com>2018-03-07 13:15:24 +0900
committerKenji Okimoto <okimoto@clear-code.com>2018-04-23 09:21:08 +0900
commitc4d6f329c7ee72fed716262cf11ce0251ae4e810 (patch)
tree1bb4562e772016f2f93ee3eb6f73301bf9fb47cb
parent8695c3d56918f9f2271709ff079113db1151fa46 (diff)
downloadbundler-c4d6f329c7ee72fed716262cf11ce0251ae4e810.tar.gz
Use 0o for octal literals
spec/bundler/bundler_spec.rb:251:25: C: Style/NumericLiteralPrefix: Use 0o for octal literals. FileUtils.chmod(0400, "tmp/vendor/bundle/unwritable.txt") ^^^^
-rw-r--r--spec/bundler/bundler_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/bundler/bundler_spec.rb b/spec/bundler/bundler_spec.rb
index 6bfddedf33..abafe26f38 100644
--- a/spec/bundler/bundler_spec.rb
+++ b/spec/bundler/bundler_spec.rb
@@ -315,7 +315,7 @@ EOF
context "unwritable paths" do
before do
FileUtils.touch("tmp/vendor/bundle/unwritable.txt")
- FileUtils.chmod(0400, "tmp/vendor/bundle/unwritable.txt")
+ FileUtils.chmod(0o400, "tmp/vendor/bundle/unwritable.txt")
end
it "should return true and display warn message" do
allow(Bundler).to receive(:bundle_path).and_return(Pathname("tmp/vendor/bundle"))