asciinema.org/spec/factories/api_tokens.rb

11 lines
244 B
Ruby
Raw Normal View History

# Read about factories at http://github.com/thoughtbot/factory_girl
FactoryGirl.define do
2014-02-09 13:44:09 +00:00
factory :api_token do
association :user
2012-03-08 14:00:10 +00:00
sequence(:token) do |n|
"2b4b4e02-6613-11e1-9be5-#{Kernel.format('%012i', n)}"
end
end
end