how should i use rspec to test these code

ids = Category.find(:all).map(&:id)