writing ActiveRecord specifications