Commit cdb1b2e4 authored by Vitali Tatarintev's avatar Vitali Tatarintev

Merge branch 'fix-project-badge-spec' into 'master'

Use parent strategy for associations in factories - Project Badge spec

See merge request gitlab-org/gitlab!41361
parents 2506265c cda122d4
......@@ -27,8 +27,8 @@ RSpec.describe ProjectBadge do
end
context 'methods' do
let(:badge) { build(:project_badge, link_url: placeholder_url, image_url: placeholder_url) }
let!(:project) { badge.project }
let(:badge) { build_stubbed(:project_badge, link_url: placeholder_url, image_url: placeholder_url) }
let(:project) { badge.project }
describe '#rendered_link_url' do
let(:method) { :link_url }
......
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