Sha256: 6a8c8ea7396d5a41a81d864ea9697915745d6293363252f3546208d50ede7fad

Contents?: true

Size: 306 Bytes

Versions: 17

Compression:

Stored size: 306 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :webhook_template do
    sequence(:name) { |n| "webhook_template#{n}" }
    sequence(:template) { |n| "template content #{n}" }

    trait :snippet do
      snippet { true }
    end

    trait :locked do
      locked { true }
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
foreman_webhooks-3.1.1 test/factories/webhook_template.rb
foreman_webhooks-3.1.0 test/factories/webhook_template.rb
foreman_webhooks-3.0.5 test/factories/webhook_template.rb
foreman_webhooks-2.0.3 test/factories/webhook_template.rb
foreman_webhooks-3.0.4 test/factories/webhook_template.rb
foreman_webhooks-2.0.2 test/factories/webhook_template.rb
foreman_webhooks-3.0.3 test/factories/webhook_template.rb
foreman_webhooks-3.0.2 test/factories/webhook_template.rb
foreman_webhooks-3.0.1 test/factories/webhook_template.rb
foreman_webhooks-2.0.1 test/factories/webhook_template.rb
foreman_webhooks-3.0.0 test/factories/webhook_template.rb
foreman_webhooks-2.0.0 test/factories/webhook_template.rb
foreman_webhooks-1.1.0 test/factories/webhook_template.rb
foreman_webhooks-1.0.0 test/factories/webhook_template.rb
foreman_webhooks-0.0.3 test/factories/webhook_template.rb
foreman_webhooks-0.0.2 test/factories/webhook_template.rb
foreman_webhooks-0.0.1 test/factories/webhook_template.rb