fix spec suite for rails 3.1, drop support for rails 3.0