lib/fitting/records/spherical/requests.rb in fitting-2.18.3 vs lib/fitting/records/spherical/requests.rb in fitting-3.0.0
- old
+ new
@@ -8,10 +8,10 @@
def to_a
return @to_a if @to_a
array = []
Dir['fitting_tests/*.json'].each do |file|
- array += JSON.parse(File.read(file))
+ array += JSON.parse(file)
end
@to_a = array.inject([]) do |res, tested_request|
request = Fitting::Records::Spherical::Request.load(tested_request)
next res unless request.path.to_s.start_with?(Fitting.configuration.prefix)