# frozen_string_literal: true

RSpec::Matchers.define :have_vulnerability_dismissal_feedback do
  match do |finding|
    expect(finding.dismissal_feedback).to have_attributes(project: finding.vulnerability.project,
                                                          category: finding.report_type,
                                                          project_fingerprint: finding.project_fingerprint)
  end
end
