debian-mirror-gitlab/spec/factories/wiki_pages.rb
2016-06-16 23:09:34 +05:30

9 lines
236 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