Migrate unit tests to rspec (to be able to disable them in self-registra...

...tion per mail).


https://www.openproject.org/issues/1834