FactoryGirl.define do
  factory :adaptation_variable, class: 'Adaptation::Variable' do
    name 'MyText'
    slug { (0...5).map { (65 + rand(26)).chr }.join }
  end
end

FactoryGirl.define do
  factory :adaptation_variable, class: 'Adaptation::Variable' do
    name 'MyText'
    sequence :slug { |n| ('aa'..'zz').to_a[n] }
  end
end

Use sequence instead of random in factory
Use sequence instead of random in factory
