Fixed broken tests broken on Rails v3.2
Fixed support for multiple Rails version (on Travis-CI)