spec/openstudio/support_files_spec.rb in openstudio-analysis-1.0.0.pre.rc3 vs spec/openstudio/support_files_spec.rb in openstudio-analysis-1.0.0.pre.rc4

- old
+ new

@@ -28,12 +28,24 @@ @s.clear expect(@s.size).to eq 0 end - it 'should only add existing files' + it 'should only add existing files' do + f = 'spec/files/worker_init/second_file.rb' + @s.add(f) + @s.add(f) - it 'should add metadata data' + expect(@s.size).to eq 1 + + f = 'non-existent.rb' + expect{@s.add(f)}.to raise_error /Path or file does not exist and cannot be added.*/ + end + + it 'should add metadata data' do + + end + it 'should add a directory' do @s.clear @s.add_files('spec/files/measures/**/*.rb', d: 'new')