lib/element_verification.rb in gridium-0.1.20 vs lib/element_verification.rb in gridium-0.1.21
- old
+ new
@@ -4,19 +4,19 @@
#
# @param [Element] element
# @param [Integer] timeout
# @param [Boolean] not_verification - Whether or not we are 'NOT' verifying something about the element
#
- def initialize(element, timeout, fail_test=false, element_should_exist=true)
+ def initialize(element, timeout, fail_test: false, element_should_exist: true)
@element = element # Selement
@timeout = timeout
@should_exist = element_should_exist
@fail_test = fail_test
end
def not
- ElementVerification.new(@element, @timeout, @fail_test, element_should_exist=false)
+ ElementVerification.new(@element, @timeout, @fail_test, element_should_exist: false)
end
def text(text)
fail_message = nil
pass_message = nil
@@ -156,6 +156,6 @@
def log_success(pass_message)
$verification_passes += 1
Log.debug("Verified: '#{@element.name}' (By:(#{@element.by} => '#{@element.locator}')) #{pass_message}")
end
-end
\ No newline at end of file
+end