Sha256: 11005575e06d942d0a99801f120fce2c47fc74fab185d2df9101dc29ba587270
Contents?: true
Size: 630 Bytes
Versions: 4
Compression:
Stored size: 630 Bytes
Contents
require 'factory_girl' require 'alchemy/test_support/factories/site_factory' FactoryGirl.define do factory :alchemy_language, class: 'Alchemy::Language' do name 'Deutsch' code 'de' default true frontpage_name 'Intro' page_layout { Alchemy::Config.get(:default_language)['page_layout'] } public true site { Alchemy::Site.first || FactoryGirl.create(:site) } trait :klingon do name 'Klingon' code 'kl' frontpage_name 'Tuq' default false end trait :english do name 'English' code 'en' frontpage_name 'Intro' default false end end end
Version data entries
4 entries across 4 versions & 1 rubygems