debian-mirror-gitlab/spec/factories/wiki_pages.rb

10 lines
234 B
Ruby
Raw Normal View History

2016-06-02 11:05:42 +05:30
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