Method: Kentico::Kontent::Delivery::Tests::FakeResponder.respond_401

Defined in:
lib/delivery/tests/fake_responder.rb

.respond_401Object



58
59
60
61
# File 'lib/delivery/tests/fake_responder.rb', line 58

def respond_401
  path = Pathname.new(File.dirname(__FILE__) + '/401.json')
  Kentico::Kontent::Delivery::Responses::ResponseBase.new 401, '', path.read if path.exist?
end