Sha256: c0943655ca7917d3da10d92e3225e0efe85a08645ce92c7548ae3aa6670cb057

Contents?: true

Size: 265 Bytes

Versions: 6

Compression:

Stored size: 265 Bytes

Contents

FactoryGirl.define do
  factory :page, class: Refinery::Page do
    sequence(:title, "a") { |n| "Test title #{n}" }

    factory :page_with_page_part do
      after(:create) do |page|
        page.parts << FactoryGirl.create(:page_part)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
refinerycms-pages-4.0.1 spec/factories/pages.rb
refinerycms-pages-3.0.6 spec/factories/pages.rb
refinerycms-pages-4.0.0 spec/factories/pages.rb
refinerycms-pages-3.0.5 spec/factories/pages.rb
refinerycms-pages-3.0.4 spec/factories/pages.rb
refinerycms-pages-3.0.3 spec/factories/pages.rb