Welcome to mirror list, hosted at ThFree Co, Russian Federation.

wiki_pages.rb « factories « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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