Module: CapybaraScreenshotDiff::DSL
Instance Attribute Summary
#test_screenshots
Instance Method Summary
collapse
#build_full_name, #group_parts, #initialize, #schedule_match_job, #screenshot_dir, #screenshot_group, #screenshot_section
Instance Method Details
#_screenshot ⇒ Object
12
|
# File 'lib/capybara_screenshot_diff/dsl.rb', line 12
alias_method :_screenshot, :screenshot
|
#screenshot(name, **args) ⇒ Object
13
14
15
16
|
# File 'lib/capybara_screenshot_diff/dsl.rb', line 13
def screenshot(name, **args)
assertion = CapybaraScreenshotDiff::ScreenshotAssertion.new(name, **args) { _screenshot(name, **args) }
CapybaraScreenshotDiff.add_assertion(assertion)
end
|