Commit 5a9b657b authored by Małgorzata Ksionek's avatar Małgorzata Ksionek

Update ee specs

parent 5a210dd8
...@@ -7,7 +7,13 @@ RSpec.describe ForkNamespaceEntity do ...@@ -7,7 +7,13 @@ RSpec.describe ForkNamespaceEntity do
let_it_be(:project) { create(:project) } let_it_be(:project) { create(:project) }
let(:namespace) { create(:group_with_deletion_schedule, :with_avatar, description: 'test', marked_for_deletion_on: 1.day.ago) } let(:namespace) { create(:group_with_deletion_schedule, :with_avatar, description: 'test', marked_for_deletion_on: 1.day.ago) }
let(:entity) { described_class.new(namespace, current_user: user, project: project) } let(:memberships) do
user.members.inject({}) do |memberships, member|
memberships[member.source_id] = member
memberships
end
end
let(:entity) { described_class.new(namespace, current_user: user, project: project, memberships: memberships) }
subject(:json) { entity.as_json } subject(:json) { entity.as_json }
......
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