require "fast_spec_helper"
require "formatters/esi_fund_publication_alert_formatter"

RSpec.describe EsiFundPublicationAlertFormatter do
  let(:url_maker) {
    double(:url_maker,
      published_specialist_document_path: "http://www.example.com"
    )
  }
  let(:document) {
    double(:document,
      alert_type: "drugs",
      title: "Some title",
      extra_fields: {},
      document_type: "esi_fund",
    )
  }
  subject(:formatter) {
    EsiFundPublicationAlertFormatter.new(
      document: document,
      url_maker: url_maker,
    )
  }

  it "format should be european_structural_investment_fund" do
    expect(formatter.tags[:format]).to eq(["european_structural_investment_fund"])
  end
end

require "fast_spec_helper"
require "formatters/esi_fund_publication_alert_formatter"

RSpec.describe EsiFundPublicationAlertFormatter do
  let(:url_maker) {
    double(:url_maker,
      published_specialist_document_path: "http://www.example.com"
    )
  }
  let(:document) {
    double(:document,
      title: "Some title",
      extra_fields: {},
      document_type: "esi_fund",
    )
  }
  subject(:formatter) {
    EsiFundPublicationAlertFormatter.new(
      document: document,
      url_maker: url_maker,
    )
  }

  it "format should be european_structural_investment_fund" do
    expect(formatter.tags[:format]).to eq(["european_structural_investment_fund"])
  end
end

Remove spurious line from ESI fund spec
Remove spurious line from ESI fund spec

This seems to have been copy-pasta'd from the medical safety alert spec.
