diff options
Diffstat (limited to 'qa/spec/support/matchers/have_matcher.rb')
-rw-r--r-- | qa/spec/support/matchers/have_matcher.rb | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/qa/spec/support/matchers/have_matcher.rb b/qa/spec/support/matchers/have_matcher.rb deleted file mode 100644 index 81288b97e6f..00000000000 --- a/qa/spec/support/matchers/have_matcher.rb +++ /dev/null @@ -1,30 +0,0 @@ -# frozen_string_literal: true - -module Matchers - PREDICATE_TARGETS = %w[ - element - file_content - assignee - child_pipeline - content - design - file - issue - job - package - pipeline - related_issue_item - snippet_description - tag - ].each do |predicate| - RSpec::Matchers.define "have_#{predicate}" do |*args, **kwargs| - match do |page_object| - page_object.public_send("has_#{predicate}?", *args, **kwargs) # rubocop:disable GitlabSecurity/PublicSend - end - - match_when_negated do |page_object| - page_object.public_send("has_no_#{predicate}?", *args, **kwargs) # rubocop:disable GitlabSecurity/PublicSend - end - end - end -end |