Sha256: 557222d577a13ac4481cfacac5757a09508cd806a6654c2bef5866d36855799f

Contents?: true

Size: 682 Bytes

Versions: 4

Compression:

Stored size: 682 Bytes

Contents

# frozen_string_literal: true

require "decidim/core/test/factories"
require "decidim/consultations/test/factories"

FactoryBot.define do
  factory :delegation, class: "Decidim::ActionDelegator::Delegation" do
    setting
    granter { association :user, organization: setting.consultation.organization }
    grantee { association :user, organization: setting.consultation.organization }
  end

  factory :setting, class: "Decidim::ActionDelegator::Setting" do
    max_grants { 3 }
    consultation
  end
end

FactoryBot.modify do
  factory :authorization, class: "Decidim::Authorization" do
    trait :direct_verification do
      name { "direct_verifications" }
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
decidim-action_delegator-0.6.0 lib/decidim/action_delegator/test/factories.rb
decidim-action_delegator-0.5.0 lib/decidim/action_delegator/test/factories.rb
decidim-action_delegator-0.4.1 lib/decidim/action_delegator/test/factories.rb
decidim-action_delegator-0.4 lib/decidim/action_delegator/test/factories.rb