Fix specs for activerecord 4.0
Merge pull request #5 from webgago/fix_specs_for_activerecord_4.0

Fix specs for activerecord 4.0