BigW Consortium Gitlab

wiki_pages.rb 236 Bytes
Newer Older
Sebastian Klier committed
1 2 3 4
require 'ostruct'

FactoryGirl.define do
  factory :wiki_page do
5
    page { OpenStruct.new(url_path: 'some-name') }
Sebastian Klier committed
6 7 8 9
    association :wiki, factory: :project_wiki, strategy: :build
    initialize_with { new(wiki, page, true) }
  end
end