Skip to content

Instantly share code, notes, and snippets.

@johanlunds
johanlunds / gist:2b73ca43180c79ea2f0b46c0555db5b4
Last active March 3, 2017 18:33 — forked from bregenspan/gist:5637609
Android Studio Logcat Filter to exclude spammy messages
^((?!wpa_supplicant|NetStatUtil).*)$
^((?!(?:dalvikvm|OpenGLRenderer)).)*$
describe "Using a fake server for Ajax", ->
server = null
beforeEach -> server = sinon.fakeServer.create()
afterEach -> server.restore()
context "when Ajax succeeds", ->
beforeEach -> respondWithJSON("/url/123", 200, '{"city": "Palm Springs"}')
it "does stuff", ->
server.respond()