diff --git a/spec/srb_json_load_spec.rb b/spec/srb_json_load_spec.rb new file mode 100644 index 00000000..cbf972e9 --- /dev/null +++ b/spec/srb_json_load_spec.rb @@ -0,0 +1,21 @@ +require 'json' + +require './lib/models/driver' + +describe 'srb_json_load' do + Dir['./**/*.json'].each do |json_file| + next if json_file.include? 'jtd.json' + + it json_file.to_s do + data = nil + if json_file.include? 'lib/engines/hcktest/drivers' + data = AutoHCK::Models::Driver.from_json_file(json_file) + else + pending("NO TYPE FOR #{json_file}") + raise + end + + expect(data).not_to be_nil + end + end +end