spec/openstudio/formulation_spec.rb in openstudio-analysis-1.0.0.rc9 vs spec/openstudio/formulation_spec.rb in openstudio-analysis-1.0.0.rc10
- old
+ new
@@ -45,11 +45,11 @@
FileUtils.mkdir_p run_dir
h = a.to_hash
expect(h[:analysis][:problem][:analysis_type]).to eq nil
- expect(a.save "#{run_dir}/analysis.json").to eq true
+ expect(a.save("#{run_dir}/analysis.json")).to eq true
end
it 'should increment objective functions' do
a = OpenStudio::Analysis.create('my analysis')
@@ -122,10 +122,10 @@
}
m.make_variable('cooling_sch', 'Change the cooling schedule', d)
m.argument_value('heating_sch', 'some-string')
expect(a.workflow.measures.size).to eq 2
- expect(a.workflow.measures[1].arguments[2][:value]).to eq 'some-string'
+ expect(a.workflow.measures[1].arguments[3][:value]).to eq 'some-string'
expect(a.workflow.measures[1].variables[0][:uuid]).to match /[\w]{8}(-[\w]{4}){3}-[\w]{12}/
a.analysis_type = 'single_run'
a.algorithm.set_attribute('sample_method', 'all_variables')
o = {