Sha256: b3e5e19ba2420573317614be8d5d3df184a39a0379eee111d97a130d5f4215ed

Contents?: true

Size: 188 Bytes

Versions: 2

Compression:

Stored size: 188 Bytes

Contents

FactoryGirl.define do
  factory :post do
    sequence(:title) { |n| "Post #{n}" }
    body "lorem ipsum"
    category

    trait :reviewed do
      status Post::REVIEWED
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
active_admin-state_machine-0.1.1 spec/factories/posts.rb
active_admin-state_machine-0.1.0 spec/factories/posts.rb