Skip to content

Commit ae3d980

Browse files
committed
cleanup
1 parent 0de45dd commit ae3d980

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/capybara/screenshot/diff/area_calculator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def calculate_skip_area
4848
def build_regions_for(coordinates)
4949
coordinates
5050
.map { |entry| Region.from_edge_coordinates(*entry) }
51-
.tap { |it| it.compact! }
51+
.tap { |region| region.compact! }
5252
end
5353
end
5454
end

lib/capybara_screenshot_diff/screenshot_assertion.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ def self.from(screenshot_job)
1818
return screenshot_job if screenshot_job.is_a?(ScreenshotAssertion)
1919

2020
caller, name, compare = screenshot_job
21-
ScreenshotAssertion.new(name).tap do |it|
22-
it.caller = caller
23-
it.compare = compare
21+
ScreenshotAssertion.new(name).tap do |assertion|
22+
assertion.caller = caller
23+
assertion.compare = compare
2424
end
2525
end
2626

0 commit comments

Comments
 (0)