Sha256: db9e06e0aa54724d3ca07ba470cc1a37c356e04581a89522b97497103853b6cd
Contents?: true
Size: 649 Bytes
Versions: 27
Compression:
Stored size: 649 Bytes
Contents
u = up.util beforeEach -> @lastRequest = -> jasmine.Ajax.requests.mostRecent() or up.util.error('There is no last request') @respondWith = (args...) -> firstArg = args.shift() responseText = undefined options = undefined if u.isString(firstArg) responseText = firstArg options = args[0] || {} else options = firstArg responseText = options.responseText request = options.request || @lastRequest() request.respondWith status: options.status || 200 contentType: options.contentType || 'text/html' responseHeaders: options.responseHeaders responseText: responseText
Version data entries
27 entries across 27 versions & 2 rubygems