Issue with directive test solved

Hi Walter, look at this change, you needed to make a $rootScope.$apply() to force to Angular to perform a digest. This is really needed when you're running the code from test, because it's the time when binding is made. Any other question you could have, don't worry to ask.