lib/kelp/checkbox.rb
# Verify that the given checkbox is not checked.
#
# @param [String] checkbox
#   Capybara locator for the checkbox
# @param [Hash] scope
#   Scoping keywords as understood by {#in_scope}
#
# @raise [Kelp::Unexpected]
#   If the given checkbox is checked
#
# @since 0.1.2
#
Verify that the given checkbox is not checked.
Verify that the given checkbox is not checked .
def checkbox_should_not_be_checked(checkbox, scope={})
      in_scope(scope) do
        field_checked = find_field(checkbox)['checked']
        if field_checked
          raise Kelp::Unexpected,
            "Expected '#{checkbox}' to be unchecked, but it is checked."
        end
      end
    end
def checkbox_should_not_be_checked ( checkbox , scope = { } ) in_scope ( scope ) do field_checked = find_field ( checkbox ) [ 'checked' ] if field_checked raise Kelp :: Unexpected , "Expected '#{checkbox}' to be unchecked, but it is checked." end end end
Verify that the given checkbox is not checked.
Verify that the given checkbox is not checked .
[Kelp::Unexpected] If the given checkbox is checked
[ Kelp :: Unexpected ] If the given checkbox is checked
checkbox
<not_specific>
scope
<not_specific>
<not_specific>
scope Scoping keywords as understood by {#in_scope}
scope Scoping keywords as understood by { #in_scope }
since
None