Commit e6788c46 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu Committed by Eugenia Grieff

Fix resource label event spec

These tests require persisted associations
parent e2e3b618
...@@ -3,10 +3,12 @@ ...@@ -3,10 +3,12 @@
require 'spec_helper' require 'spec_helper'
RSpec.describe ResourceLabelEvent, type: :model do 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) } subject { build(:resource_label_event, issue: issue, label: label) }
let(:merge_request) { create(:merge_request) }
it_behaves_like 'having unique enum values' 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