Fix a number of specs on older Rails versions.