1 include CurrentApiClient
6 Thread.current[:user_was] = Thread.current[:user]
7 Thread.current[:user] = system_user
10 Thread.current[:user] = Thread.current[:user_was]
15 "https://example.com/#{rand(2**24).to_s(36)}"
17 factory :active_user do
19 after :create do |user|
21 Link.create!(tail_uuid: user.uuid,
22 head_uuid: Group.where('uuid ~ ?', '-f+$').first.uuid,
23 link_class: 'permission',