Sha256: 2cea2f297c853b4d96332224a5b9bfd63ac3c909012000fef422498154fb173a

Contents?: true

Size: 396 Bytes

Versions: 1

Compression:

Stored size: 396 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  sequence :path do |n|
    "path/to/page#{n}"
  end

  sequence :title do |n|
    "title#{n}"
  end

  factory :user do
    name 'tom'
  end

  factory :wiki_page, class: 'Yaw::WikiPage' do
    wiki_space
    path
    user
    title  'a wiki'
    body   'is a page'
  end

  factory :wiki_space, class: 'Yaw::WikiSpace' do
    title
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yaw-0.0.2 spec/factories/wiki.rb