# frozen_string_literal: true

require 'spec_helper'

describe VulnerabilityEntity do
  let(:vulnerability) do
    create(:vulnerability)
  end

  let(:entity) do
    described_class.represent(vulnerability)
  end

  subject { entity.to_json }

  it { is_expected.to match_schema('vulnerability', dir: 'ee') }
end
