Hi Bogdan!
Your example is super-interesting, I didn't know that you can combine
$resource promises like this, I thought it was only possible with
$http promises... But since $resource is using $http behind the scene
it is kind of obvious... Sometimes things are just in front of you yet
you can't see them...
Anyway, this jsFiddle works:
http://jsfiddle.net/6ajEn/4/ but your
original jsFiddle gives me headache... I'm kind of guessing here but I
presume that it has something to do with timing, looks like
expectations are executed before a joined promise callback is
executed... So it is probably more jasmine + $q combination problem
than a $q issue.
Need to understand this one, maybe you with my working example you
will be able to come up with a plausible theory :-) Any async /
jasmine gurus, please help :-)
Cheers,
Pawel
> --
> You received this message because you are subscribed to the Google Groups
> "AngularJS" group.
> To post to this group, send email to
ang...@googlegroups.com.
> To unsubscribe from this group, send email to
>
angular+u...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/angular?hl=en.
>
>