summaryrefslogtreecommitdiff
path: root/qa/qa/resource/label_base.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/resource/label_base.rb')
-rw-r--r--qa/qa/resource/label_base.rb17
1 files changed, 1 insertions, 16 deletions
diff --git a/qa/qa/resource/label_base.rb b/qa/qa/resource/label_base.rb
index b1af0e23561..855e41af8bb 100644
--- a/qa/qa/resource/label_base.rb
+++ b/qa/qa/resource/label_base.rb
@@ -49,27 +49,12 @@ module QA
}
end
- # Object comparison
- #
- # @param [QA::Resource::GroupBase] other
- # @return [Boolean]
- def ==(other)
- other.is_a?(LabelBase) && comparable_label == other.comparable_label
- end
-
- # Override inspect for a better rspec failure diff output
- #
- # @return [String]
- def inspect
- JSON.pretty_generate(comparable_label)
- end
-
protected
# Return subset of fields for comparing labels
#
# @return [Hash]
- def comparable_label
+ def comparable
reload! unless api_response
api_response.slice(