Module: CapybaraScreenshotDiff::DSL

Includes:
Capybara::DSL, Capybara::Screenshot::Diff::TestMethods
Included in:
Minitest::Assertions
Defined in:
lib/capybara_screenshot_diff/dsl.rb

Instance Attribute Summary

Attributes included from Capybara::Screenshot::Diff::TestMethods

#test_screenshots

Instance Method Summary collapse

Methods included from Capybara::Screenshot::Diff::TestMethods

#build_full_name, #group_parts, #initialize, #schedule_match_job, #screenshot_dir, #screenshot_group, #screenshot_section

Instance Method Details

#_screenshotObject



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