Hi Witold!
Thnx so much for taking time looking into this. I didn't realize that
'resolve' is called via root scope's $evalAsync, so I've learned
something here!
As often with async stuff it wasn't so obvious for me and I was even
persuaded that my example without Jasmine works in the synchronous
way... So in the end this is just timing issue with Jasmine. I wonder
if we need mock version of $q (with flush()) since calling $digest
will do the trick.
With this new insight I need to go back to the Bogdan's question that
trigger this $q + Jasmine questions for me:
https://groups.google.com/forum/?fromgroups#!topic/angular/N5yBJvl7Pbg
Once again, thnx for your help!
Cheers,
Pawe;