Implementing an Angular service (Rubygems) with TDD