Sha256: 755fd68a1c1e2b0cd843348b9976522a68ee14bc86ec515ae7334370616fce9f

Contents?: true

Size: 398 Bytes

Versions: 31

Compression:

Stored size: 398 Bytes

Contents

FactoryGirl.define do
  sequence(:title) { |n| n }

  factory :page, :class => 'Kuhsaft::Page' do |p|
    p.position 1
    p.title { "English Title #{FactoryGirl.generate(:title)}" }
    p.published 1
    p.body 'lorem ipsum'
    p.url ''
  end

  factory :asset, :class => Kuhsaft::Asset do |a|
    a.file File.open("#{Kuhsaft::Engine.root}/spec/dummy/app/assets/images/spec-image.png")
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
kuhsaft-1.2.4 spec/factories.rb
kuhsaft-1.2.3 spec/factories.rb
kuhsaft-1.2.2 spec/factories.rb
kuhsaft-1.2.1 spec/factories.rb
kuhsaft-1.2.0 spec/factories.rb
kuhsaft-1.1.1 spec/factories.rb
kuhsaft-1.1.0 spec/factories.rb
kuhsaft-1.0.3 spec/factories.rb
kuhsaft-1.0.2 spec/factories.rb
kuhsaft-1.0.1 spec/factories.rb
kuhsaft-1.0.0 spec/factories.rb