An integral of the type $\int _0 ^1 \delta(x^2-x)dx$ may appear confusing at first, but can be understood by choosing a suitable representation of the Dirac delta function. The block-form is the simplest (and often the best):
$\delta_\epsilon (y) = 1/(2\epsilon) \qquad$ if $\qquad -\epsilon < y < \epsilon \qquad and \qquad =0 \qquad $ otherwise
Application of this representation to the integral above means finding the values of $x$ where the argument is larger than $-\epsilon$. Up to linear order in $\epsilon$ this results in the two regions $0 < x < \epsilon$ and $1-\epsilon < x < 1$. The integral therefore simplifies to
$$\int _0 ^\epsilon 1/(2\epsilon) dx + \int _{1-\epsilon} ^1 1/(2\epsilon)dx = 1/2 + 1/2 = 1$$
EDIT: Here is a more formal way of evaluating the intgral. First we split the intgration interval into two regions: $(0,1/2)$ and $(1/2, 1)$. Now introduce the new variable $y = x^2-x$. This is equivalent to $x = 1/2 + \sqrt{y + 1/4}$ or $x = 1/2 - \sqrt{y + 1/4}$. The minus sign corresponds to the first interval, the plus to the second. Differentiation with respect to $y$ yields the relation between $dx$ and $dy$. Substitution into the original expression gives:
$$\int_{0}^{-1/4}(-1/2)/\sqrt{y+1/4} \ \delta(y)dy + \int_{-1/4}^{0}(1/2)/\sqrt{y+1/4} \ \delta(y)dy$$
This is a trivial integral that reduces to $1/2 + 1/2 = 1$. So the "loose" method and the "formal" method lead to the same result. Note that if the original intgral contained a smooth test function $f(x)$, the result with both methods would be: $(f(0)+f(1))/2$.