# frozen_string_literal: true

require "rails_helper"
require "json"

describe SentryJob do
  it "gets created automatically" do
    expect(Delayed::Job.count).to eq(0)
    Raven.capture_message("Test")
    expect(Delayed::Job.count).to eq(1)
  end
end

# frozen_string_literal: true

require "rails_helper"
require "json"

describe SentryJob do
  before do
    Raven.configure do |config|
      config.dsn = "https://fake@fake.ingest.sentry.io/fake"
    end
  end

  it "gets created automatically" do
    expect(Delayed::Job.count).to eq(0)
    Raven.capture_message("Test")
    expect(Delayed::Job.count).to eq(1)
  end
end

Fix sentry spec now that it's disabled for specs
11106: Fix sentry spec now that it's disabled for specs
