I suppose I could. This was a much simpler path though.

Thinking about it more, I'm a little torn on whether to mock it out or not. The general rule with unit tests is to mock out all dependencies, but to me that brings in extra work and, more importantly, runs the risk of unit tests incorrectly passing if the dependency gets updated but the mock doesn't. 

That said, I do mock out the $route functionality, so it's not like I'm hard-fast with that opinion. I guess most of my decision was based on what I could get working the fastest. It was simple to inject rxEnvironment, but it would have been tricky trying to get $route correct. 

@Droogans any opinions on mocking versus injection?