Skip to content

Instantly share code, notes, and snippets.

@bonkydog
Created November 1, 2012 16:22
Show Gist options
  • Select an option

  • Save bonkydog/3994804 to your computer and use it in GitHub Desktop.

Select an option

Save bonkydog/3994804 to your computer and use it in GitHub Desktop.
Bypass Sinon XHR mocking to load Jasmine Fixtures
beforeEach ->
sinon.FakeXMLHttpRequest.addFilter (httpMethod, url) ->
(httpMethod.match(/get/i) && url.match(/^\/?jasmine/)) != null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment