lib/fitting/records/spherical/requests.rb in fitting-2.8.0 vs lib/fitting/records/spherical/requests.rb in fitting-2.8.1

- old
+ new

@@ -6,10 +6,13 @@ class Spherical class Requests def to_a return @to_a if @to_a - array = JSON.load(File.read('tests.json')) + array = [] + Dir['fitting_tests/*.json'].each do |file| + array += JSON.load(File.read(file)) + end @to_a = array.inject([]) do |res, tested_request| res.push(Fitting::Records::Spherical::Request.load(tested_request)) end end end