Megan,
A factory instance is only and ever one object (though if there is an association, you can use an after(:create) to build out multiple associated objects, yes).
If you just need multiple objects like it sounds like you do, that has to happen outside the context of your factory girl definitions, such as using a method to go through and build them or what not. In which case the factory definition is pretty simple, because your model/field is simple.
Sequences within factory girl can assist in ensuring different instantiated factories have different values in a sequential manner, but that still does not create multiple objects for you (or ensure that any given number of objects you create necessarily starts with a certain value - sequences are incremented any time the factory is created in your test runtime!).
So I would do something like this:
FactoryGirl.define do
factory :calendar do
date { 1.day.ago } # Or whatever you want the "default" for this to be if otherwise unspecified
end
end
Then to get the objects:
(1..10).map {|n| FactoryGirl.build(:calendar, date: n.days.ago) }.reverse
This of course can be wrapped in a helper method for your tests if you're using it enough.