Skip to content

Commit 715f852

Browse files
Typos that broke the facility spec and lighting systems initialization
1 parent 9ca091b commit 715f852

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/buildingsync/model_articulation/facility.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def read_and_create_initial_systems
212212
systems_xml = xget_or_create('Systems')
213213

214214
init_hvac_systems(systems_xml.elements["#{@ns}:HVACSystems"])
215-
init_lighting_systems(systems_xml.elements["#{@ns}:LightingSystem"])
215+
init_lighting_systems(systems_xml.elements["#{@ns}:LightingSystems"])
216216
init_load_systems(systems_xml.elements["#{@ns}:PlugLoads"]) # PlugLoad, not ProcessLoad
217217

218218
end
@@ -242,7 +242,7 @@ def init_lighting_systems(lighting_system_xmls)
242242
else
243243
@lighting_systems = []
244244
lighting_system_xmls.elements.each do |lighting_system_xml|
245-
@lighting_systems << BuildingSync::LightingSystem.new(lighting_system_xml, @ns)
245+
@lighting_systems << BuildingSync::LightingSystemType.new(lighting_system_xml, @ns)
246246
end
247247
end
248248
end

spec/tests/model_articulation_test/facility_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@
172172
@ns = 'auc'
173173
g = BuildingSync::Generator.new
174174
doc = g.create_minimum_snippet('Retail')
175-
doc_no_systems = g.create_minimum_snippet('Retail)')
175+
doc_no_systems = g.create_minimum_snippet('Retail')
176176
@facility_no_systems_xml = g.get_first_facility_element(doc_no_systems)
177177

178178
g.add_hvac_system_to_first_facility(doc, 'HVACSystem-1', 'VAV with Hot Water Reheat')

0 commit comments

Comments
 (0)