Commit 0d228871 authored by Alexander Turinske's avatar Alexander Turinske

Update rspec test to remove unused variable

- use create instead
parent 0c0a6e9e
......@@ -8,11 +8,14 @@ RSpec.describe Projects::Security::PoliciesHelper do
context 'when a project does have a security policy project' do
let(:policy_management_project) { create(:project) }
let!(:policy_configuration) { create(:security_orchestration_policy_configuration, security_policy_management_project: policy_management_project, project: project) }
subject { helper.assigned_policy_project(project) }
it {
create(:security_orchestration_policy_configuration,
{ security_policy_management_project: policy_management_project, project: project }
)
is_expected.to include({
id: policy_management_project.to_global_id.to_s,
name: policy_management_project.name,
......
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