summaryrefslogtreecommitdiff
path: root/spec/factories/redirect_routes.rb
blob: c29c81c5df9f81e17a43b2402ab8e2ead440cfaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FactoryBot.define do
  factory :redirect_route do
    sequence(:path) { |n| "redirect#{n}" }
    source factory: :group
    permanent false

    trait :permanent do
      permanent true
    end

    trait :temporary do
      permanent false
    end
  end
end