discourse/discourse — pull request #1296 by TeaMoe (2013-08-04 13:27:54+00:00)
Title: fix search spec

Search spec failed when using rails4.

It turned out the implementation of the spec was incorrect and it should have been failed with rails 3.2 either.
I tried to reconstruct the intention behind this spec by reading the commit, which introduced the test lines. I wrote comments to clarify which behaviour my implementation tests.