I\'m trying to get FactoryGirl to generate some names for me, but the sequence doesn\'t seem to increment.
# spec/factories/vessel.rb require \'factory_girl\
And the answer is:
require 'factory_girl' FactoryGirl.define do sequence :vessel_name do |n| "TK42#{n}" end factory :vessel do vessel_type 'fermenter' volume_scalar 100.0 volume_units 'bbl' after :build do |v| v.name = FactoryGirl.generate(:vessel_name) end end end