Skip to content

Commit

Permalink
this fixes a test that didn't get merged properly in the tests PR
Browse files Browse the repository at this point in the history
  • Loading branch information
vtnate committed Aug 29, 2023
1 parent fc299b8 commit 9bef4dc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions spec/urbanopt/geojson/geo_file_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)
Expand Down

0 comments on commit 9bef4dc

Please sign in to comment.