Sha256: ef03dac518f9ae3eead7b1da7b6f1b12b0a8c34675e68dacd1f907ae7b9525a5

Contents?: true

Size: 285 Bytes

Versions: 12

Compression:

Stored size: 285 Bytes

Contents

require 'factory_bot'
require 'alchemy/test_support/factories/page_factory'

FactoryBot.define do
  factory :alchemy_cell, class: 'Alchemy::Cell' do
    page { Alchemy::Page.find_by(language_root: true) || FactoryBot.create(:alchemy_page, :language_root) }
    name "a_cell"
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
alchemy_cms-4.0.6 lib/alchemy/test_support/factories/cell_factory.rb
alchemy_cms-4.1.2 lib/alchemy/test_support/factories/cell_factory.rb
alchemy_cms-4.1.1 lib/alchemy/test_support/factories/cell_factory.rb
alchemy_cms-4.1.0 lib/alchemy/test_support/factories/cell_factory.rb
alchemy_cms-4.0.5 lib/alchemy/test_support/factories/cell_factory.rb
alchemy_cms-4.0.4 lib/alchemy/test_support/factories/cell_factory.rb
alchemy_cms-4.1.0.rc1 lib/alchemy/test_support/factories/cell_factory.rb
alchemy_cms-4.0.3 lib/alchemy/test_support/factories/cell_factory.rb
alchemy_cms-4.0.2 lib/alchemy/test_support/factories/cell_factory.rb
alchemy_cms-4.1.0.beta lib/alchemy/test_support/factories/cell_factory.rb
alchemy_cms-4.0.1 lib/alchemy/test_support/factories/cell_factory.rb
alchemy_cms-4.0.0 lib/alchemy/test_support/factories/cell_factory.rb