Skip to content

Commit

Permalink
Fix Naming/AccessorMethodName in the tests.
Browse files Browse the repository at this point in the history
This was kind of a misfire of this cop, but no bother to change.
  • Loading branch information
hainesr committed Feb 19, 2020
1 parent d63e2fd commit 4916556
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .rubocop_todo.yml
Expand Up @@ -36,7 +36,6 @@ Naming/AccessorMethodName:
- 'lib/zip/filesystem.rb'
- 'lib/zip/input_stream.rb'
- 'lib/zip/streamable_stream.rb'
- 'test/file_permissions_test.rb'

# Offense count: 7
# Configuration parameters: EnforcedStyle.
Expand Down
8 changes: 4 additions & 4 deletions test/file_permissions_test.rb
Expand Up @@ -15,23 +15,23 @@ def test_current_umask
end

def test_umask_000
set_umask(0o000) do
apply_umask(0o000) do
create_files
end

assert_matching_permissions FILENAME, ZIPNAME
end

def test_umask_066
set_umask(0o066) do
apply_umask(0o066) do
create_files
end

assert_matching_permissions FILENAME, ZIPNAME
end

def test_umask_027
set_umask(0o027) do
apply_umask(0o027) do
create_files
end

Expand All @@ -56,7 +56,7 @@ def create_files
end

# If anything goes wrong, make sure the umask is restored.
def set_umask(umask)
def apply_umask(umask)
saved_umask = ::File.umask(umask)
yield
ensure
Expand Down

0 comments on commit 4916556

Please sign in to comment.