Wouldn't this be true if ```$scope.actionParams['ids']``` was null?  

What if you made the mock ```getSelected``` return ```expectedIds``` and then checked for that instead?