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

Fix protected ref access spec

We need to persist the project association first before adding any
project group links
parent 6f8b800a
......@@ -104,6 +104,7 @@ RSpec.describe EE::ProtectedRefAccess do
it "doesn't require access_level if group specified" do
subject = build(factory_name, access_level: nil, group: create(:group))
subject.project.save
subject.project.project_group_links.create(group: subject.group)
expect(subject).to be_valid
......
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