Your use of the ratio test is fine--clearly, it won't converge outside of $[-1,1]$, and you are correct in asserting that it doesn't converge for $x=-1$ and $x=1$.
You probably still have to prove that it converges for $x\in (-1,1)$, but you can use the comparison test against the series $a_n = x^n$ for that.