Sha256: 9c6f603b46282137672468f2ca280d8fe4800f54cdc79ec95ca1273980af02c0

Contents?: true

Size: 629 Bytes

Versions: 1

Compression:

Stored size: 629 Bytes

Contents

FactoryGirl.define do

  factory :spree_page, :class => Spree::Page do
    title            "Just a page"
    meta_title       { self.title }
    meta_description { "Nothing too cool here except the title: #{title}." } 
    meta_keywords    { "just, something, in, a, list, #{title.downcase}" }
  end
  
  factory :spree_content, :class => Spree::Content do
    page { Spree::Page.first }
    title "Just some content"
    body  { "Nothing too cool here except the title: #{title}." }
  end

  factory :spree_page_image, :class => Spree::PageImage do
    viewable { Spree::Page.first }
    attachment { sample_image }
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spree_essential_cms-0.4.0 test/support/factories.rb