Test and refactoring of RepoSubscriptionsController

  * Add tests for update and destroy actions
  * Replace `where().first` with `find` to avoid errors
    `undefined method destroy for NilClass` when subscription not found
Merge pull request #176 from ck3g/repo-subscriptions-refactoring

Test and refactoring of RepoSubscriptionsController