projects
/
arvados.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch '8206-gce-retry-init' closes #8206
[arvados.git]
/
services
/
api
/
test
/
factories
/
api_client_authorization.rb
1
FactoryGirl.define do
2
factory :api_client_authorization do
3
api_client
4
scopes ['all']
5
6
trait :trusted do
7
association :api_client, factory: :api_client, is_trusted: true
8
end
9
factory :token do
10
# Just provides shorthand for "create :api_client_authorization"
11
end
12
13
to_create do |instance|
14
act_as_user instance.user do
15
instance.save!
16
end
17
end
18
end
19
end