Sha256: 9c1493704649bd667fe23a49e50c67ce5410cc42b85e821bb4cdcf8c47ee6d9f
Contents?: true
Size: 511 Bytes
Versions: 11
Compression:
Stored size: 511 Bytes
Contents
FactoryGirl.define do factory :post, class: Wordpress::Post do post_title 'Test' post_content 'CONTENT' post_excerpt "EXCERPT" to_ping "127.0.0.1" pinged "127.0.0.1" post_content_filtered "'" association :post_author trait :with_tags do after(:create) do |post, evaluator| create(:relationship, post: post, taxonomy: create(:tag, name: "Foo")) create(:relationship, post: post, taxonomy: create(:tag, name: "Bar")) end end end end
Version data entries
11 entries across 11 versions & 1 rubygems