Make test_tenant implementation specific to thread (#279)
Make test_tenant implementation specific to thread (#279)

At the moment test_tenant causes problems for system tests which run the
server and the test in separate threads. By using Thread.current we get
different test_tenant per thread.

This should also enable parrallel tests in threads.
ErwinM/acts_as_tenant,ErwinM/acts_as_tenant,ErwinM/acts_as_tenant