#factory girl helpers # #to use: # require 'factory_stacker' #in spec/spec_helper module FactoryGirl ## #short hand sequence #+column+:: symbol of column name def auto_sequence column sequence(column) { |n| "#{column.to_s} #{n}" } end ## #short hand sequence for multiple columns #+columns+:: array of symboles of column names def auto_sequencer columns columns.each { |k| sequence(k) } end end