I am doing some practice problems for abstract algebra and have come across this idea in a couple places, but it seems fundamentally wrong. For example, in order to prove that $f(x) = x^2 + x + 1$ is irreducible over the field $\mathbb Z_2$ I came across an example where a person just plugged in $f(0) = 1$ and $f(1) = 1$ and stated that this was enough to prove it. But what about the polynomial $p(x)=21x^2 + 32x + 12=(7x+6)(3x+2)$ over the ring $\mathbb Z$? Though it's only zeros are $\frac{-6}{7}$ and $\frac{-2}{3}$, it is certainly reducible over $\mathbb Z$. I tried to solve the problem by showing that $\mathbb Z_2[x]\setminus A$, where the ideal $A=(x^2 + x +1)$, is a field, but am getting hung up on showing that every nonzero element has an inverse.
EDITED: My point about the sample polynomial talks about the ring Z, which I initially misidentified as a field, so it should be disregarded.
Thanks for all your help!