Hey guys,
So I'm new to the whole testing thing (I've been one of those people who has said 'I should write unit tests...' but never ended up ever doing it :-p).
I'm now writing unit tests for this project. I'm using testacular + Jasmine, with browserify to compile things. I was having no problems until I started trying to do a lot angular-injection-stuff.
Right now I'm simply trying to do a test of ng-model to get my head around all of it.
And I have my test itself:
http://d.pr/n/5ucl (_MainCtrlTest.coffee, in same directory as MainCtrl.coffee)
The test fails immediately, with the input's elm.val() returning blank, and scope.hello returning the intended value ('initial', set in MainCtrl.coffee)
What am I doing wrong here?