discourse/discourse — pull request #1856 by velesin (2014-01-23 19:30:40+00:00)
Title: Adds unit tests for SearchController

Plus fixes a small bug - the result count from the previous search was not reset when user starts typing a new term.