Sha256: 20d92638818eae96190397ef5071d9935dcddb1863285b03bb569eb4c7cc4bdb

Contents?: true

Size: 288 Bytes

Versions: 24

Compression:

Stored size: 288 Bytes

Contents

require 'factory_girl'
require 'alchemy/test_support/factories/page_factory'

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

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
alchemy_cms-3.6.7 lib/alchemy/test_support/factories/cell_factory.rb
alchemy_cms-3.6.6 lib/alchemy/test_support/factories/cell_factory.rb
alchemy_cms-3.6.5 lib/alchemy/test_support/factories/cell_factory.rb
alchemy_cms-3.6.4 lib/alchemy/test_support/factories/cell_factory.rb
alchemy_cms-3.6.3 lib/alchemy/test_support/factories/cell_factory.rb
alchemy_cms-3.6.2 lib/alchemy/test_support/factories/cell_factory.rb
alchemy_cms-4.0.0.rc2 lib/alchemy/test_support/factories/cell_factory.rb
alchemy_cms-4.0.0.rc1 lib/alchemy/test_support/factories/cell_factory.rb
alchemy_cms-3.6.1 lib/alchemy/test_support/factories/cell_factory.rb
alchemy_cms-4.0.0.beta lib/alchemy/test_support/factories/cell_factory.rb
alchemy_cms-3.6.0 lib/alchemy/test_support/factories/cell_factory.rb
alchemy_cms-3.5.0 lib/alchemy/test_support/factories/cell_factory.rb
alchemy_cms-3.4.2 lib/alchemy/test_support/factories/cell_factory.rb
alchemy_cms-3.5.0.rc2 lib/alchemy/test_support/factories/cell_factory.rb
alchemy_cms-3.5.0.rc1 lib/alchemy/test_support/factories/cell_factory.rb
alchemy_cms-3.4.1 lib/alchemy/test_support/factories/cell_factory.rb
alchemy_cms-3.3.3 lib/alchemy/test_support/factories/cell_factory.rb
alchemy_cms-3.3.2 lib/alchemy/test_support/factories/cell_factory.rb
alchemy_cms-3.4.0 lib/alchemy/test_support/factories/cell_factory.rb
alchemy_cms-3.4.0.rc1 lib/alchemy/test_support/factories/cell_factory.rb