Sha256: 8a0251d37c73eaf00e8cbe3bf07ffca5cd11a76a80f3f845356e7744ac5f6a17

Contents?: true

Size: 292 Bytes

Versions: 44

Compression:

Stored size: 292 Bytes

Contents

require 'factory_girl'

FactoryGirl.define do
  factory :page, :class => Effective::Page do
    sequence(:title) { |n| "Title #{n}" }
    sequence(:slug) { |n| "title-#{n}" }

    meta_description 'meta description'
    draft false

    template 'example'
    layout 'application'
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
effective_pages-1.3.2 spec/support/factories.rb
effective_pages-1.3.1 spec/support/factories.rb
effective_pages-1.3.0 spec/support/factories.rb
effective_pages-1.2.0 spec/support/factories.rb
effective_pages-1.1.9 spec/support/factories.rb
effective_pages-1.1.8 spec/support/factories.rb
effective_pages-1.1.7 spec/support/factories.rb
effective_pages-1.1.6 spec/support/factories.rb
effective_pages-1.1.5 spec/support/factories.rb
effective_pages-1.1.4 spec/support/factories.rb
effective_pages-1.1.3 spec/support/factories.rb
effective_pages-1.1.2 spec/support/factories.rb
effective_pages-1.1.1 spec/support/factories.rb
effective_pages-1.1.0 spec/support/factories.rb
effective_pages-1.0.17 spec/support/factories.rb
effective_pages-1.0.16 spec/support/factories.rb
effective_pages-1.0.15 spec/support/factories.rb
effective_pages-1.0.14 spec/support/factories.rb
effective_pages-1.0.13 spec/support/factories.rb
effective_pages-1.0.12 spec/support/factories.rb