Skip to content

Commit 11c6e50

Browse files
committed
calm down rubocop
1 parent 366d460 commit 11c6e50

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

.rubocop.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ AllCops:
66
Bundler/OrderedGems:
77
Enabled: false
88

9+
Lint/AmbiguousBlockAssociation:
10+
Exclude:
11+
- spec/**/*_spec.rb
12+
913
Lint/EndAlignment:
1014
EnforcedStyleAlignWith: variable
1115

@@ -73,6 +77,9 @@ Style/IndentAssignment:
7377
Style/IndentHash:
7478
EnforcedStyle: consistent
7579

80+
Style/IndentHeredoc:
81+
Enabled: false
82+
7683
Style/ParallelAssignment:
7784
Enabled: false
7885

@@ -98,3 +105,6 @@ Style/TrailingCommaInArguments:
98105

99106
Style/TrailingCommaInLiteral:
100107
EnforcedStyleForMultiline: comma
108+
109+
Style/SymbolArray:
110+
Enabled: false

spec/image_optim/cache_path_spec.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@
5151

5252
it 'changes inode of destination' do
5353
skip 'inodes are not supported' unless inodes_supported?
54-
expect do
55-
src.replace(dst)
56-
end.to change{ dst.stat.ino }
54+
expect{ src.replace(dst) }.to change{ dst.stat.ino }
5755
end
5856
end
5957
end

spec/image_optim/path_spec.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,7 @@
9797

9898
it 'changes inode of destination' do
9999
skip 'inodes are not supported' unless inodes_supported?
100-
expect do
101-
src.replace(dst)
102-
end.to change{ dst.stat.ino }
100+
expect{ src.replace(dst) }.to change{ dst.stat.ino }
103101
end
104102
end
105103
end

0 commit comments

Comments
 (0)