You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
244 B
Ruby
11 lines
244 B
Ruby
13 years ago
|
# Read about factories at http://github.com/thoughtbot/factory_girl
|
||
|
|
||
|
FactoryGirl.define do
|
||
11 years ago
|
factory :api_token do
|
||
13 years ago
|
association :user
|
||
13 years ago
|
sequence(:token) do |n|
|
||
|
"2b4b4e02-6613-11e1-9be5-#{Kernel.format('%012i', n)}"
|
||
|
end
|
||
13 years ago
|
end
|
||
|
end
|