add rake file
use rspec
fix specs in Rails 4
Failing test in DB=postgresql