Lines Matching refs:ontology

11   factory :ontology do |ontology|
24 ontology.after(:build) do |ontology|
26 ontology: ontology,
27 basepath: ontology.basepath,
28 file_extension: ontology.file_extension,
30 ontology.versions << version
33 ontology.after(:create) do |ontology|
34 ontology.ontology_version = ontology.versions.last
35 ontology.save!
39 ontology.after(:build) do |ontology|
41 ontology: ontology,
42 basepath: ontology.basepath,
43 file_extension: ontology.file_extension
44 ontology.versions << version
48 after(:build) do |ontology|
50 ontology: ontology,
51 basepath: ontology.basepath,
52 file_extension: ontology.file_extension,
54 ontology.versions << version
58 factory :single_unparsed_ontology do |ontology|
59 ontology.after(:build) do |ontology|
61 ontology: ontology,
62 basepath: ontology.basepath,
63 file_extension: ontology.file_extension
65 ontology.versions << version
78 factory :linked_distributed_ontology do |ontology|
79 ontology.after(:build) do |ontology|
81 child_one = FactoryGirl.create(:ontology,
83 repository: ontology.repository)
84 child_two = FactoryGirl.create(:ontology,
86 repository: ontology.repository)
91 ontology: ontology)
93 ontology.children.push(child_one, child_two)
99 built_ontology.children << FactoryGirl.build(:ontology,
104 built_ontology.children << FactoryGirl.build(:ontology,
113 after(:build) do |ontology|
115 ontology: ontology,
116 basepath: ontology.basepath,
117 file_extension: ontology.file_extension
119 ontology.versions << version
122 child_one = FactoryGirl.build(:ontology, :with_version,
123 parent: ontology,
124 basepath: ontology.basepath,
125 file_extension: ontology.file_extension,
127 repository: ontology.repository)
130 child_two = FactoryGirl.build(:ontology, :with_version,
131 parent: ontology,
132 basepath: ontology.basepath,
133 file_extension: ontology.file_extension,
135 repository: ontology.repository)
141 ontology: ontology)
145 factory :heterogeneous_ontology do |ontology|
146 ontology.after(:build) do |ontology|
149 ontology.children << FactoryGirl.build(:ontology,
151 parent: ontology,
152 repository: ontology.repository)
153 ontology.children << FactoryGirl.build(:ontology,
155 parent: ontology,
156 repository: ontology.repository)
160 factory :homogeneous_ontology do |ontology|
161 ontology.after(:build) do |ontology|
163 ontology.children << FactoryGirl.create(:ontology,
165 repository: ontology.repository)
166 ontology.children << FactoryGirl.create(:ontology,
168 repository: ontology.repository)