From ed86faebe1de0d7bb364341f8a36b4aac0757d0c Mon Sep 17 00:00:00 2001 From: Valery Sizov Date: Thu, 18 May 2017 16:18:26 +0300 Subject: Fix: Deleting an invited member causes 500 error --- spec/factories/project_members.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'spec/factories/project_members.rb') diff --git a/spec/factories/project_members.rb b/spec/factories/project_members.rb index d62799a5a47..fe4518caadf 100644 --- a/spec/factories/project_members.rb +++ b/spec/factories/project_members.rb @@ -9,5 +9,11 @@ FactoryGirl.define do trait(:developer) { access_level ProjectMember::DEVELOPER } trait(:master) { access_level ProjectMember::MASTER } trait(:access_request) { requested_at Time.now } + + trait(:invited) do + user_id nil + invite_token 'xxx' + invite_email 'email@email.com' + end end end -- cgit v1.2.1