diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-07-14 22:20:40 -0500 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-07-20 09:35:41 -0500 |
commit | c476ee2672b506f7f8909cd44ba4111da4c2b5c2 (patch) | |
tree | be3480874093648d116e71976ef869bbebe63112 /spec/support/helpers.rb | |
parent | af80780f713f8f798d67d1511c2817871c60f125 (diff) | |
download | bundler-c476ee2672b506f7f8909cd44ba4111da4c2b5c2.tar.gz |
[RuboCop] Update to 0.41.2
Diffstat (limited to 'spec/support/helpers.rb')
-rw-r--r-- | spec/support/helpers.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/support/helpers.rb b/spec/support/helpers.rb index 2c3a8f7254..a609385984 100644 --- a/spec/support/helpers.rb +++ b/spec/support/helpers.rb @@ -264,7 +264,7 @@ module Spec def break_git! FileUtils.mkdir_p(tmp("broken_path")) - File.open(tmp("broken_path/git"), "w", 0755) do |f| + File.open(tmp("broken_path/git"), "w", 0o755) do |f| f.puts "#!/usr/bin/env ruby\nSTDERR.puts 'This is not the git you are looking for'\nexit 1" end @@ -273,7 +273,7 @@ module Spec def with_fake_man FileUtils.mkdir_p(tmp("fake_man")) - File.open(tmp("fake_man/man"), "w", 0755) do |f| + File.open(tmp("fake_man/man"), "w", 0o755) do |f| f.puts "#!/usr/bin/env ruby\nputs ARGV.inspect\n" end with_path_added(tmp("fake_man")) { yield } @@ -411,10 +411,10 @@ module Spec end end - Dir[pattern].each(&chmod[0555, 0444]) + Dir[pattern].each(&chmod[0o555, 0o444]) yield ensure - Dir[pattern].each(&chmod[0755, 0644]) + Dir[pattern].each(&chmod[0o755, 0o644]) end def process_file(pathname) |