gitlab-ce/qa/spec/support/matchers/have_file.rb

14 lines
265 B
Ruby

# frozen_string_literal: true
module HaveFileMatcher
RSpec::Matchers.define :have_file do |file|
match do |page_object|
page_object.has_file?(file)
end
match_when_negated do |page_object|
page_object.has_no_file?(file)
end
end
end