Use rspec and facory girl
Factories to create repository with users.
Spec for repository model