Skip to content
Snippets Groups Projects
Unverified Commit 3fdfbded authored by Andrejs Cunskis's avatar Andrejs Cunskis
Browse files

Override specific custom comparables

parent 317384ff
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -122,6 +122,15 @@ def api_delete_path
"/groups/#{id}"
end
 
# Object comparison
# Override to make sure we are comparing descendands of GroupBase
#
# @param [QA::Resource::GroupBase] other
# @return [Boolean]
def ==(other)
other.is_a?(GroupBase) && comparable == other.comparable
end
protected
 
# Return subset of fields for comparing groups
Loading
Loading
Loading
Loading
@@ -181,6 +181,15 @@ def set_public_email
)
end
 
protected
# Compare users by username and password
#
# @return [Array]
def comparable
[username, password]
end
private
 
def ldap_post_body
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment