spec/support/fake_api.rb in finapps-2.0.6 vs spec/support/fake_api.rb in finapps-2.0.10

- old
+ new

@@ -1,6 +1,8 @@ +# frozen_string_literal: true require 'sinatra/base' +# the FakeApi class is used to mock API requests while testing. class FakeApi < Sinatra::Base # resource post('/v2/resources') { json_response 201, 'resource.json' } get('/v2/resources/:id') { json_response 200, 'resource.json' }