In this lesson you will unit test a simple AngularJS directive
Do you have the source for this? The example doesn't work
The api changed so that you now need to use isolateScope() to access an isolated scope of a directive.
Any chance you could update this so that it works? It would be good but there are definitely pieces missing as well as you aren't showing your karma.conf.js which would be beneficial.