Project

General

Profile

Download (617 Bytes) Statistics
| Branch: | Tag: | Revision:
FactoryGirl.define do
factory :config_template do
sequence(:name) { |n| "config_template#{n}" }
sequence(:template) { |n| "template content #{n}" }

template_kind
end

factory :template_combination do
config_template
hostgroup
environment
end

factory :os_default_template do
template_kind
config_template { FactoryGirl.create(:config_template, :template_kind => template_kind) }
operatingsystem { FactoryGirl.create(:operatingsystem, :config_templates => [config_template]) }
end

factory :template_kind do
sequence(:name) { |n| "template_kind_#{n}" }
end
end
(4-4/18)