require "rails_helper"

describe ErrorReportJob do
  describe '#perform' do

    let(:event) { { event: "data" } }

    it 'sends an error report to sentry' do
      expect_any_instance_of(Faraday::Connection).to receive(:post).with("/api/5/store/")

      described_class.new.perform(event)
    end
  end
end
