class Kontrast::Spec
Attributes
_after_screenshot[RW]
_before_screenshot[RW]
name[RW]
Public Class Methods
new(name)
click to toggle source
# File lib/kontrast/spec.rb, line 5 def initialize(name) @name = name end
Public Instance Methods
after_screenshot(test_driver, production_driver, current_test)
click to toggle source
# File lib/kontrast/spec.rb, line 15 def after_screenshot(test_driver, production_driver, current_test) if @_after_screenshot @_after_screenshot.call(test_driver, production_driver, current_test) end end
before_screenshot(test_driver, production_driver, current_test)
click to toggle source
# File lib/kontrast/spec.rb, line 9 def before_screenshot(test_driver, production_driver, current_test) if @_before_screenshot @_before_screenshot.call(test_driver, production_driver, current_test) end end