Sha256: 7736de0a741e60e17f96fc8297cf98b4b17e030cc90923b6955475d3d671f41f

Contents?: true

Size: 406 Bytes

Versions: 30

Compression:

Stored size: 406 Bytes

Contents

# frozen_string_literal: true

require "factory_bot"

FactoryBot.define do
  factory :alchemy_site, class: "Alchemy::Site" do
    name { "A Site" }
    host { "domain.com" }

    trait :default do
      public { true }

      name { Alchemy::Config.get(:default_site)["name"] }
      host { Alchemy::Config.get(:default_site)["host"] }
    end

    trait :public do
      public { true }
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
alchemy_cms-5.1.10 lib/alchemy/test_support/factories/site_factory.rb
alchemy_cms-5.0.10 lib/alchemy/test_support/factories/site_factory.rb
alchemy_cms-5.1.9 lib/alchemy/test_support/factories/site_factory.rb
alchemy_cms-5.0.9 lib/alchemy/test_support/factories/site_factory.rb
alchemy_cms-5.1.8 lib/alchemy/test_support/factories/site_factory.rb
alchemy_cms-5.0.8 lib/alchemy/test_support/factories/site_factory.rb
alchemy_cms-5.0.7 lib/alchemy/test_support/factories/site_factory.rb
alchemy_cms-5.1.7 lib/alchemy/test_support/factories/site_factory.rb
alchemy_cms-5.1.6 lib/alchemy/test_support/factories/site_factory.rb
alchemy_cms-5.0.6 lib/alchemy/test_support/factories/site_factory.rb
alchemy_cms-5.1.5 lib/alchemy/test_support/factories/site_factory.rb
alchemy_cms-5.0.5 lib/alchemy/test_support/factories/site_factory.rb
alchemy_cms-5.1.4 lib/alchemy/test_support/factories/site_factory.rb
alchemy_cms-5.0.4 lib/alchemy/test_support/factories/site_factory.rb
alchemy_cms-5.1.3 lib/alchemy/test_support/factories/site_factory.rb
alchemy_cms-5.2.0.b1 lib/alchemy/test_support/factories/site_factory.rb
alchemy_cms-5.1.2 lib/alchemy/test_support/factories/site_factory.rb
alchemy_cms-5.1.1 lib/alchemy/test_support/factories/site_factory.rb
alchemy_cms-5.0.3 lib/alchemy/test_support/factories/site_factory.rb
alchemy_cms-5.1.0 lib/alchemy/test_support/factories/site_factory.rb