Merge pull request #376 from iquest/rails-4.1

Search should work on relation with merged String join
Follow up to #376
Clean up base_spec.rb to 80 chars [skip ci]
Fix test. Cut whitespace.
Improve test; extract join SQL string to a local var