Sha256: 1ef83c297fa6c5f97e99dc1920645a26fc334597a19b26cb19c35da82a94015d

Contents?: true

Size: 376 Bytes

Versions: 16

Compression:

Stored size: 376 Bytes

Contents

FactoryGirl.define do
  factory :template, class: 'Landable::Template' do
    sequence(:name) { |n| "Template #{n}" }
    description "Factory-generated template"
    thumbnail_url "http://example.com/bogus-screenshot.png"
    body '<div class="container">content goes here!</div>'

    trait :partial do
      editable false
      file     'random/partial'
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
landable-1.13.1 spec/factories/template.rb
landable-1.12.3 spec/factories/template.rb
landable-1.12.2 spec/factories/template.rb
landable-1.12.1 spec/factories/template.rb
landable-1.11.1 spec/factories/template.rb
landable-1.11.0 spec/factories/template.rb
landable-1.10.0.rc2 spec/factories/template.rb
landable-1.10.0.rc1 spec/factories/template.rb
landable-1.9.2 spec/factories/template.rb
landable-1.9.1 spec/factories/template.rb
landable-1.9.0 spec/factories/template.rb
landable-1.9.0.rc2 spec/factories/template.rb
landable-1.9.0.rc1 spec/factories/template.rb
landable-1.8.0 spec/factories/template.rb
landable-1.7.1.rc1 spec/factories/template.rb
landable-1.7.0 spec/factories/template.rb