Have removed active record rspec to work. It's working now.