Sha256: 3d82b5b9999133f782ca52d48b9e70a0d7200a1d3f228c71fec7c9a509890c0c
Contents?: true
Size: 521 Bytes
Versions: 58
Compression:
Stored size: 521 Bytes
Contents
require 'indemma/lib/record/resource' root = exports ? window rest = require 'indemma/lib/record/rest' jQuery = require 'component-jquery' describe 'rest', -> object = null beforeEach -> object = Object.create rest object.route = "users" object.resource = "user" beforeEach -> sinon.stub(jQuery, "ajax").returns(jQuery.Deferred()) afterEach -> jQuery.ajax.restore() describe '#delete', -> it 'should make ajax call', -> object.delete() jQuery.ajax.called.should.be.true
Version data entries
58 entries across 58 versions & 1 rubygems