Sequences are defined using sequence within a FactoryGirl.define block. Sequence values are generated using next. @api private
# File lib/factory_girl/sequence.rb, line 9 def initialize(name, *args, &proc) @name = name @proc = proc options = args.extract_options! @value = args.first || 1 @aliases = options.fetch(:aliases) { [] } if !@value.respond_to?(:peek) @value = EnumeratorAdapter.new(@value) end end
Generated with the Darkfish Rdoc Generator 2.