diff --git a/.rubocop_rubyzip.yml b/.rubocop_rubyzip.yml index 2370d62..13d1936 100644 --- a/.rubocop_rubyzip.yml +++ b/.rubocop_rubyzip.yml @@ -160,11 +160,6 @@ Style/IfUnlessModifier: Style/InfiniteLoop: Enabled: false -# Offense count: 1 -# Cop supports --auto-correct. -Style/Lambda: - Enabled: false - # Offense count: 24 # Cop supports --auto-correct. Style/LeadingCommentSpace: diff --git a/test/encryption_test.rb b/test/encryption_test.rb index fb4aa3f..46770a1 100644 --- a/test/encryption_test.rb +++ b/test/encryption_test.rb @@ -18,7 +18,7 @@ class EncryptionTest < MiniTest::Test @rand = [250, 143, 107, 13, 143, 22, 155, 75, 228, 150, 12] @output = ::Zip::DOSTime.stub(:now, ::Zip::DOSTime.new(2014, 12, 17, 15, 56, 24)) do - Random.stub(:rand, lambda { |_range| @rand.shift }) do + Random.stub(:rand, ->(_range) { @rand.shift }) do Zip::OutputStream.write_buffer(::StringIO.new(''), Zip::TraditionalEncrypter.new('password')) do |zos| zos.put_next_entry('file1.txt') zos.write open(INPUT_FILE1).read