Commit d568be91 authored by Alexander Turinske's avatar Alexander Turinske

Update test names

- with the update of the helper method, update
  the test names as well
parent 03ab39e1
......@@ -5,13 +5,13 @@ require 'spec_helper'
RSpec.describe Projects::ThreatMonitoringHelper do
let(:project) { create(:project, :repository, :public) }
describe '#policy_alert_details' do
describe '#threat_monitoring_alert_details_data' do
let(:alert) { build(:alert_management_alert, project: project) }
context 'when a new alert is created' do
subject { helper.threat_monitoring_alert_details_data(project, alert.iid) }
it 'returns expected policy data' do
it 'returns expected alert data' do
expect(subject).to match({
'alert-id' => alert.iid,
'project-path' => project.full_path,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment