File tree Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -711,14 +711,6 @@ Style/StructInheritance:
711
711
Exclude:
712
712
- 'test/test_ldap.rb'
713
713
714
- # Offense count: 1
715
- # Cop supports --auto-correct.
716
- # Configuration parameters: IgnoredMethods.
717
- # IgnoredMethods: respond_to, define_method
718
- Style/SymbolProc:
719
- Exclude:
720
- - 'test/test_ldif.rb'
721
-
722
714
# Offense count: 4
723
715
# Cop supports --auto-correct.
724
716
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowSafeAssignment.
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ def test_ldif
76
76
77
77
# Must test folded lines and base64-encoded lines as well as normal ones.
78
78
def test_to_ldif
79
- data = File.open(TestLdifFilename, "rb") { |f| f. read }
79
+ data = File.open(TestLdifFilename, "rb", &: read)
80
80
io = StringIO.new(data)
81
81
82
82
# added .lines to turn to array because 1.9 doesn't have
You can’t perform that action at this time.
0 commit comments