Welcome to mirror list, hosted at ThFree Co, Russian Federation.

create_default_alerts_worker_spec.rb « prometheus « workers « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d935bb20a29e6746d2a071a4df1367bc261bb9b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Prometheus::CreateDefaultAlertsWorker do
  let_it_be(:project) { create(:project) }

  subject { described_class.new.perform(project.id) }

  it 'does nothing' do
    expect { subject }.not_to change { PrometheusAlert.count }
  end
end