Skip to content

Commit cd13bba

Browse files
committed
Make Rubocop happy
1 parent 3a68c66 commit cd13bba

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

lib/super_diff/diff_formatters/collection.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Collection
1515
:add_comma!,
1616
:collection_prefix!,
1717
:build_item_prefix!,
18-
]
18+
],
1919
)
2020

2121
def call
@@ -73,7 +73,7 @@ def build_chunk(value, prefix:, icon:)
7373
" ",
7474
indentation(offset: 1),
7575
(index == 0 ? prefix : ""),
76-
line
76+
line,
7777
].join
7878
}.
7979
join("\n")

lib/super_diff/equality_matcher.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class EqualityMatcher
99
extra_classes: [],
1010
extra_operational_sequencer_classes: [],
1111
extra_diff_formatter_classes: [],
12-
]
12+
],
1313
)
1414

1515
def call

lib/super_diff/rspec/object_inspection/inspectors/collection_containing_exactly.rb

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@ module SuperDiff
22
module RSpec
33
module ObjectInspection
44
module Inspectors
5-
CollectionContainingExactly = SuperDiff::ObjectInspection::InspectionTree.new do
6-
add_text "#<a collection containing exactly ("
5+
CollectionContainingExactly =
6+
SuperDiff::ObjectInspection::InspectionTree.new do
7+
add_text "#<a collection containing exactly ("
78

8-
nested do |aliased_matcher|
9-
insert_array_inspection_of(aliased_matcher.expected)
10-
end
9+
nested do |aliased_matcher|
10+
insert_array_inspection_of(aliased_matcher.expected)
11+
end
1112

12-
add_break
13-
add_text ")>"
14-
end
13+
add_break
14+
add_text ")>"
15+
end
1516
end
1617
end
1718
end

0 commit comments

Comments
 (0)