Sha256: e7d28c4ae69589732f23280bfe882903a96f1b6fa30c54e43587d724e785608a

Contents?: true

Size: 416 Bytes

Versions: 3

Compression:

Stored size: 416 Bytes

Contents

beforeEach(function() {

  if (typeof jQuery != 'undefined') {
    spyOn(jQuery.ajaxSettings, 'xhr').andCallFake(function() {
      var newXhr = new FakeXMLHttpRequest();
      ajaxRequests.push(newXhr);
      return newXhr;
    });
  }

  if (typeof Prototype != 'undefined') {
    spyOn(Ajax, "getTransport").andCallFake(function() {
      return new FakeXMLHttpRequest();
    });
  }

  clearAjaxRequests();

});

Version data entries

3 entries across 3 versions & 3 rubygems

Version Path
zfben_rails_assets-0.0.1 vendor/assets/javascripts/jasmine/spec-helper.js
zff-0.0.1 vendor/assets/javascripts/jasmine/spec-helper.js
zzf-core-0.0.2 vendor/assets/javascripts/jasmine/spec-helper.js