Sha256: 5402d02fab8998f1a13fbfc8474558d9fe7ba96bc640be6ecfc4aeb19cc525d6
Contents?: true
Size: 958 Bytes
Versions: 3
Compression:
Stored size: 958 Bytes
Contents
FactoryGirl.define do factory :user do email 'john@doe.com' login "jdoe" password 's3cr3t' password_confirmation 's3cr3t' factory :admin_user do role "admin" end factory :registered_user do role "registered" end factory :author_user do role "author" end factory :editor_user do role "editor" end end factory :language do code "kl" name 'Klingonian' default false frontpage_name 'Tuq' page_layout 'intro' public true end factory :page do language { Language.find_by_code('kl') || Factory(:language) } name "A Page" parent_id { Factory(:language_root_page).id } page_layout "standard" factory :language_root_page do name 'Klingonian' page_layout 'intro' language_root true public true parent_id { Page.root.id } end factory :public_page do name "A Public Page" public true end end factory :element do name 'article' end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
alchemy_cms-2.0.rc6 | spec/factories.rb |
alchemy_cms-2.0.rc5 | spec/factories.rb |
alchemy_cms-2.0.rc4 | spec/factories.rb |