Commit a0d1a09a authored by Mayra Cabrera's avatar Mayra Cabrera

Merge branch 'fix-resource-label-event-spec' into 'master'

Use parent strategy for associations in factories - Resource Label Event spec

See merge request gitlab-org/gitlab!41340
parents 25ba859e e6788c46
......@@ -3,10 +3,12 @@
require 'spec_helper'
RSpec.describe ResourceLabelEvent, type: :model do
subject { build(:resource_label_event, issue: issue) }
let_it_be(:project) { create(:project, :repository) }
let_it_be(:issue) { create(:issue, project: project) }
let_it_be(:merge_request) { create(:merge_request, source_project: project) }
let_it_be(:label) { create(:label, project: project) }
let(:issue) { create(:issue) }
let(:merge_request) { create(:merge_request) }
subject { build(:resource_label_event, issue: issue, label: label) }
it_behaves_like 'having unique enum values'
......
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