gitlab-org--gitlab-foss/spec/factories/wiki_pages.rb

10 lines
236 B
Ruby
Raw Normal View History

2016-04-15 00:47:09 -04:00
require 'ostruct'
FactoryGirl.define do
factory :wiki_page do
page { OpenStruct.new(url_path: 'some-name') }
2016-04-15 00:47:09 -04:00
association :wiki, factory: :project_wiki, strategy: :build
initialize_with { new(wiki, page, true) }
end
end