title: How would I test a $scope.watch (AngularJS) change in Jasmine?
body: <p>I've just recently started writing something with AngularJS and I'm not sure how to go about writing a test for this particular thing. I'm building a "Help Request" mode that has different states. So in my controller, I use a $scope.request_mode variable. The different links to activate help requests set that variable to something differently.</p>
  
  <p>Then inside my directive, I'm doing a <code>$scope.$watch('request_mode', function(){...});</code> to selectively activate or deactivate things as the request mode changes. The code all works great, but the problem I'm having is with testing. I cannot seem to get Jasmine to pick up the <code>$scope.$watch</code> and actually fire anything when it changes. </p>
  
  <p>I'm sure someone has run into this before, so any suggestions would be very much appreciated. </p>