Sha256: d0b820bf4f29ac7a6f87ad4a858bd400f7441d67bb4f5a81f9d3b1b4eb298ee3

Contents?: true

Size: 322 Bytes

Versions: 1

Compression:

Stored size: 322 Bytes

Contents

FactoryGirl.define do

  factory :post, class: Fuel::Post do
    title "This is a title"
    author "Ryan Francis"
    tag "Coding"
    content "Some content for a blog post"
    published true

    factory :invalid_post do
      title nil
    end
    factory :unpublished_post do
      published false
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fuel-0.3.28 spec/factories.rb