Sha256: 795999f3e2a6d70e67840da6d5ad4bf7c59253aaeeac7b4d49b6008584967384

Contents?: true

Size: 383 Bytes

Versions: 110

Compression:

Stored size: 383 Bytes

Contents

# frozen_string_literal: true

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

110 entries across 110 versions & 1 rubygems

Version Path
alchemy_cms-7.1.0.pre.b1 lib/alchemy/test_support/factories/site_factory.rb
alchemy_cms-7.0.8 lib/alchemy/test_support/factories/site_factory.rb
alchemy_cms-7.0.7 lib/alchemy/test_support/factories/site_factory.rb
alchemy_cms-7.0.6 lib/alchemy/test_support/factories/site_factory.rb
alchemy_cms-7.0.5 lib/alchemy/test_support/factories/site_factory.rb
alchemy_cms-7.0.4 lib/alchemy/test_support/factories/site_factory.rb
alchemy_cms-7.0.3 lib/alchemy/test_support/factories/site_factory.rb
alchemy_cms-6.1.9 lib/alchemy/test_support/factories/site_factory.rb
alchemy_cms-7.0.2 lib/alchemy/test_support/factories/site_factory.rb
alchemy_cms-6.1.8 lib/alchemy/test_support/factories/site_factory.rb
alchemy_cms-6.1.7 lib/alchemy/test_support/factories/site_factory.rb
alchemy_cms-7.0.1 lib/alchemy/test_support/factories/site_factory.rb
alchemy_cms-7.0.0 lib/alchemy/test_support/factories/site_factory.rb
alchemy_cms-7.0.0.pre.rc1 lib/alchemy/test_support/factories/site_factory.rb
alchemy_cms-6.1.6 lib/alchemy/test_support/factories/site_factory.rb
alchemy_cms-7.0.0.pre.c lib/alchemy/test_support/factories/site_factory.rb
alchemy_cms-7.0.0.pre.b lib/alchemy/test_support/factories/site_factory.rb
alchemy_cms-6.1.5 lib/alchemy/test_support/factories/site_factory.rb
alchemy_cms-6.0.14 lib/alchemy/test_support/factories/site_factory.rb
alchemy_cms-6.1.4 lib/alchemy/test_support/factories/site_factory.rb