lib/fakeit/app/app.rb in fakeit-0.3.1 vs lib/fakeit/app/app.rb in fakeit-0.4.0
- old
+ new
@@ -1,9 +1,9 @@
module Fakeit
module App
class << self
def create(spec_file, options)
- specification = Fakeit::Openapi.load(spec_file)
+ specification = Fakeit::Openapi::Specification.new(spec_file)
proc do |env|
request = Rack::Request.new(env)
specification
.operation(request.request_method.downcase.to_sym, request.path_info, options)