gitlab-org--gitlab-foss/spec/factories/wiki_pages.rb
2016-04-20 08:25:41 +08:00

9 lines
234 B
Ruby

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