replaced depricated rspec function in the curb spec