From what I have read, spreading pepper would attract, not deter, bears. Apparently the even odor of bear spray will attract bears, even though it is indeed effective is repelling them when used properly. So, if you have used bear spray to repel a curious bear, you probably want to move on down the trail, because the lingering smell will attract his cousins.

I have no idea as to whether pepper will repel mice, but since it would attract bears, that doesn't seem like a very good deal. Is the scene in the movie realistic? - I doubt it. Most flicks are not training films...