Skip to content

Commit

Permalink
Silence CI warnings for missing assertions.
Browse files Browse the repository at this point in the history
  • Loading branch information
donv committed Dec 30, 2024
1 parent 9936a0a commit b0f7141
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/capybara_screenshot_diff/minitest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ module Assertions
include ::CapybaraScreenshotDiff::DSL

def screenshot(*args, skip_stack_frames: 0, **opts)
super(*args, skip_stack_frames: skip_stack_frames + 1, **opts)
rescue CapybaraScreenshotDiff::ExpectationNotMet => e
raise ::Minitest::Assertion, e.message
assert_nothing_raised do
super(*args, skip_stack_frames: skip_stack_frames + 1, **opts)
end
end

alias_method :assert_matches_screenshot, :screenshot
Expand Down

0 comments on commit b0f7141

Please sign in to comment.