From 9bef4dcd36183cf20be8257e74b8b25f48bc3a96 Mon Sep 17 00:00:00 2001 From: Nathan Moore Date: Tue, 29 Aug 2023 11:41:22 -0600 Subject: [PATCH] this fixes a test that didn't get merged properly in the tests PR --- spec/urbanopt/geojson/geo_file_spec.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spec/urbanopt/geojson/geo_file_spec.rb b/spec/urbanopt/geojson/geo_file_spec.rb index 70c40e1..27b29b5 100644 --- a/spec/urbanopt/geojson/geo_file_spec.rb +++ b/spec/urbanopt/geojson/geo_file_spec.rb @@ -70,11 +70,11 @@ end it 'validate geojson file with two ground heat exchangers_2' do - geojson_file = File.open(File.join(@spec_files_dir, 'example_project_with_ghe.json')) do |f| + geojson_file = File.open(spec_files_dir / 'example_project_with_ghe.json') do |f| result = JSON.parse(f.read, symbolize_names: true) end - schema = File.open(File.dirname(__FILE__) + '/../../../lib/urbanopt/geojson/schema/geojson_schema.json') do |f| + schema = File.open(schema_dir / 'geojson_schema.json') do |f| result = JSON.parse(f.read, symbolize_names: true) end @@ -83,7 +83,6 @@ expect(geojson_errors).to be_empty end - it 'raise error' do geojson_file = File.open(spec_files_dir / 'invalid.geojson') do |f| result = JSON.parse(f.read, symbolize_names: true)