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

Fix project badge spec

We use build_stubbed so that we have a project_id. It is used when
generating URLs
parent bba75738
......@@ -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