discourse/discourse — pull request #1645 by velesin (2013-11-12 19:44:41+00:00)
Title: fixes the problem with perceived not mocked xhr call in tests

fixes the problem discussed here: https://github.com/discourse/discourse/pull/1642#issuecomment-28307514
(Instead of using low level xhr mock via sinon.server I've used higher level one, by mocking Discourse.ajax method - this prevents ajax test helper from perceiving this mock as a real non mocked xhr call)