spec/openstudio/analysis/translator/excel_spec.rb in openstudio-analysis-0.3.0 vs spec/openstudio/analysis/translator/excel_spec.rb in openstudio-analysis-0.3.1
- old
+ new
@@ -381,9 +381,15 @@
it 'should write a json' do
@excel.save_analysis
expect(File.exist?('spec/files/export/analysis/0_3_0_outputs.json')).to eq true
expect(File.exist?('spec/files/export/analysis/0_3_0_outputs.zip')).to eq true
+
+ # check the JSON
+ h = JSON.parse(File.read('spec/files/export/analysis/0_3_0_outputs.json'))
+ expect(h['analysis']['weather_file']).to be_a Hash
+ expect(h['analysis']['weather_file']['path']).to eq './weather/partial_weather.epw'
end
+
end
end