Project

General

Profile

Download (579 Bytes) Statistics
| Branch: | Tag: | Revision:

foreman_pipeline / test / fixtures_support.rb @ master

1
module ForemanPipeline
2
  module FixturesSupport
3
    FIXTURE_CLASSES = {
4
      :jobs => ForemanPipeline::Job,
5
      :jenkins_instances => ForemanPipeline::JenkinsInstance,
6
      :jenkins_users => ForemanPipeline::JenkinsUser,
7
      :jenkins_projects => ForemanPipeline::JenkinsProject,
8
      :pipeline_hostgroups => Hostgroup,
9
      :pipeline_compute_profiles => ComputeProfile,
10
      :pipeline_compute_attributes => ComputeAttribute,
11
    }
12

    
13
    def self.set_fixture_classes(test_class)
14
      FIXTURE_CLASSES.each { |k, v| test_class.set_fixture_class(k => v) }
15
    end
16
  end
17
end