scinote-web/spec/factories/team_shared_objects.rb

16 lines
277 B
Ruby
Raw Normal View History

2019-07-11 21:40:20 +08:00
# frozen_string_literal: true
2023-03-07 03:17:45 +08:00
# frozen_string_literal: true
2019-07-11 21:40:20 +08:00
FactoryBot.define do
2023-03-07 03:17:45 +08:00
factory :team_shared_object do
2019-07-11 21:40:20 +08:00
repository
trait :read do
permission_level { :shared_read }
2019-07-11 21:40:20 +08:00
end
trait :write do
permission_level { :shared_write }
2019-07-11 21:40:20 +08:00
end
end
end