$\lim_{x\to1}\dfrac{x-1}{x^2+x-2}$ = $\dfrac{1}{3}$, but
$\lim_{x\to-2+}\dfrac{x-1}{x^2+x-2}$ tends towards positive infinity and
$\lim_{x\to-2-}\dfrac{x-1}{x^2+x-2}$ tends towards negative infinity.
How do you know this without the need of trying different values of x very close to where the limit tends to?
First of all,
$$\lim_{x\to1} \frac{x-1}{x^2+x-2} = \lim_{x \to 1} \frac{x-1}{(x-1)(x+2)} = \frac{1}{3}.$$
To see what a limit is, we have to try values that are "close" to the limiting point. When you do this enough, your intuition allows you to understand what it should tend to. For example, with your second one, the numerator is always positive and $> 1$, and the denominator tends to $0$, so it "blows up" to positive infinity. Of course, this is just a heuristic, and a good rigorous treatment is always needed when you encounter something you are unfamiliar with.