Sha256: 0e2289873435f6a0c500554c4748bd353bf03c158ab6180c7394e95be7f24dab

Contents?: true

Size: 280 Bytes

Versions: 2

Compression:

Stored size: 280 Bytes

Contents

FactoryGirl.define do

  factory :article, :class => 'Strain::Article' do
    body_hash = {
      "summary": "this is a test article",
      "main": "This is the main article body."
    }

    body body_hash
    slug "test-article"
    title "Test Article"
    variant
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
strain-0.0.2 spec/factories/strain_articles.rb
strain-0.0.1 spec/factories/strain_articles.rb