Is it possible for FactoryGirl to define a random number say from 0-10?
factory :rating do
ranking 1 #random number?
recipe
end
I'd really like the ranking number generated to be a random value between 0-10.
I want to generate ratings with different numbers, but don't want to explicitly define them in rspec. This would be used to display the average and other stats from the rating numbers. Ex: How many 10's, How many 0's, average etc.