summaryrefslogtreecommitdiff
path: root/spec/factories/wiki_pages.rb
blob: efa6cbe5bb1410f74348c65b0726d323d67fdbfb (plain)
1
2
3
4
5
6
7
8
9
require 'ostruct'

FactoryGirl.define do
  factory :wiki_page do
    page { OpenStruct.new(url_path: 'some-name') }
    association :wiki, factory: :project_wiki, strategy: :build
    initialize_with { new(wiki, page, true) }
  end
end